Back to Alamofire

CancellationToken

docs/docsets/Alamofire.docset/Contents/Resources/Documents/Classes/DataStreamRequest/CancellationToken.html

5.12.0300 B
Original Source

CancellationToken

public struct CancellationToken : Sendable

Type used to cancel an ongoing stream.

`

                cancel()
                `

Cancel the ongoing stream by canceling the underlying DataStreamRequest.

Declaration

Swift

public func cancel()