AsyncStream and progress reporting

I get it now. The onTermination closure needs to be annotated with @Sendable:

continuation.onTermination = { @Sendable termination in … }
1 Like