Oded Niv
Oded Niv
Maybe the question is - why is `flow.onCompletion` takes a `suspend` function even though it's likely a cancelled coroutine, and `suspendCancellableCoroutine`'s `invokeOnCancellation` and `callbackFlow`'s `awaitClose` take a non-`suspend`, requiring the...
Thanks @dkhalanskyjb! > ```kt > launch(start = CoroutineStart.ATOMIC) { > ``` I'm confused - which `CoroutineScope` is used here? > Do you have any insight as to why this unsubscription...
> The receiver of Oh I missed that receiver, it seems unconventional to accept a context/scope both by declaring the function as a `suspend` function and as a `CoroutineScope` receiver,...
> This logic breaks once we are adding parallelism to the mix (and follow-up related mentions). Yeah that's true. I wonder if there's a semantic difference between cancellation happening before...
I agree, we drifted with the discussion on `Flow.onComplete`, which was fun but we can focus on this issue. This issue is not really a question, it was a FR...
> `invokeOnCancellation` is a low-level, deeply technical thing Not sure what that means as it is part of the public API, that IIUC is supposed to help the developer do...
Ignore the specific commit referenced above, see https://github.com/Kotlin/kotlinx.coroutines/compare/master...odedniv:kotlinx.coroutines:multiplex for the most up to date proposal.