case finished(Failure?)
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 AsyncThrowingStream
<Element, Failure>.Continuation
.Termination
The on
closure receives an instance of this type.
case finished(Failure?)
finish
method.case cancelled
var onTermination : (@Sendable (AsyncThrowingStream<Element, Failure>.Continuation.Termination) -> Void)?