case finished
The stream finished as a result of calling the continuation’s
finish
method.case cancelled
The stream finished as a result of cancellation.
Availability
Technology
enum AsyncStream
<Element>.Continuation
.Termination
The on
closure receives an instance of this type.
case finished
finish
method.case cancelled
var hashValue : Int
func hash(into: inout Hasher)
static func == (AsyncStream<Element>.Continuation.Termination, AsyncStream<Element>.Continuation.Termination) -> Bool
var onTermination : (@Sendable (AsyncStream<Element>.Continuation.Termination) -> Void)?