Extensions for kotlin.coroutines.experimental.CoroutineContext
fun CoroutineContext.cancel( Cancels Job of this context with an optional cancellation cause. The result is |
|
fun CoroutineContext.cancelChildren( Cancels all children of the Job in this context with an optional cancellation cause. It does not do anything if there is no job in the context or it has no children. See Job.cancelChildren for details. |