CoroutineName
data class CoroutineName : AbstractCoroutineContextElement
(source)Platform and version requirements: JVM
User-specified name of coroutine. This name is used in debugging mode. See newCoroutineContext for the description of coroutine debugging facilities.
Types
companion object Key : Key<CoroutineName> Key for CoroutineName instance in the coroutine context. |
Constructors
CoroutineName(name: String) User-specified name of coroutine. This name is used in debugging mode. See newCoroutineContext for the description of coroutine debugging facilities. |
Properties
val name: String User-defined coroutine name. |
Functions
fun toString(): String Returns a string representation of the object. |
Extension Functions
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. |