CancellationToken
public struct CancellationToken : Sendable
Type used to cancel an ongoing stream.
-
Cancel the ongoing stream by canceling the underlying
DataStreamRequest
.Declaration
Swift
public func cancel()