Cancels an asynchronous load of a request.
SDKs
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
func cancel()
Discussion
After this method is called, the connection makes no further delegate method calls. If you want to reattempt the connection, you should create a new connection object.