Join Slack
Powered by
there was some handy function to suspend coroutine...
# coroutines
d
dimsuz
01/18/2022, 5:52 PM
there was some handy function to suspend coroutine forever until cancellation will be triggered. can't find it right away, does anyone remember?
z
Zach Klippenstein (he/him) [MOD]
01/18/2022, 5:52 PM
awaitCancellation()
https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/await-cancellation.html
d
dimsuz
01/18/2022, 5:54 PM
yep, that's it! thanks much!
9
Views
Open in Slack
Previous
Next