Contents

flush(completionHandler:)

Flushes cookies and credentials to disk, clears transient caches, and ensures that future requests occur on a new TCP connection.

Declaration

func flush(completionHandler: @escaping  @Sendable () -> Void)
func flush() async

Parameters

  • completionHandler:

    The completion handler to call when the flush operation is complete. This handler is executed on the delegate queue.

See Also

Managing the session