CombineAsyncually
CombineAsyncually copied to clipboard
You should see how Kotlin mixes coroutines and Flow
quickly translated to swift
Flow { emitter in
await Task.sleep(10_000_000)
emitter.emit(42)
}
when the closure returns, the stream completes