Join Slack
Powered by
Is there any possibility to launch coroutine as a ...
# coroutines
p
PHondogo
02/19/2024, 3:07 PM
Is there any possibility to launch coroutine as a daemon? So that if all non daemon coroutines finish in coroutine scope then all daemon coroutines will be cancelled.
d
Dmitry Khalanskiy [JB]
02/19/2024, 3:08 PM
For tests, there's
https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines.test/-test-scope/background-scope.html
Dmitry Khalanskiy [JB]
02/19/2024, 3:09 PM
For everything else, no specific solution yet: see
https://github.com/Kotlin/kotlinx.coroutines/issues/1065
p
PHondogo
02/19/2024, 3:13 PM
Thanks for quick reply!
61
Views
Open in Slack
Previous
Next