Join Slack
Communities
Powered by
Does calling `coroutineContext.cancel()` for a `su...
# coroutines
l
louiscad
09/30/2018, 12:28 PM
Does calling
coroutineContext.cancel()
for a
suspend fun
immediately throws
CancellationException
to interrupt the execution of the function, or should I call
yield()
afterwards?
e
elizarov
09/30/2018, 1:24 PM
Should yield or call some other cancellable suspending function
👍 1
4
Views
Open in Slack
Previous
Next