Join Slack
Powered by
how can i tell when a receivechannel has closed? i...
# coroutines
w
william
03/05/2021, 12:20 AM
how can i tell when a receivechannel has closed? i'm not iterating over it in this case
william
03/05/2021, 12:23 AM
Copy code
.consumeAsFlow().onCompletion { ... }
?
m
mng
03/05/2021, 1:49 AM
https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/is-active.html
Maybe 'isActive' is what you're looking for?
3
Views
Open in Slack
Previous
Next