Given a `CoroutineScope` is there any way to wait ...
# coroutines
e
Given a
CoroutineScope
is there any way to wait for it to be cancelled other than doing something like launching and calling
delay(Long.MAX_VALUE)
?
z
awaitCancellation()
e
I don't see that available on
CoroutineScope
?
z
neither is
delay
though – they're both just suspend functions
if you are in a different coroutine,
scope.coroutineContext.job.join()
💡 1