Instance Method

cancel()

Cancels the connection and gracefully disconnects any established network protocols.

Declaration

final func cancel()

See Also

Canceling Connections

func forceCancel()

Cancels the connection and immediately disconnects any established network protocols.

func cancelCurrentEndpoint()

Causes the current endpoint to be rejected, allowing the connection to try another resolved address.