CoroutineName

data class CoroutineName(name: String) : AbstractCoroutineContextElement

User-specified name of coroutine. This name is used in debugging mode. See newCoroutineContext for the description of coroutine debugging facilities.

Constructors

CoroutineName
Link copied to clipboard
fun CoroutineName(name: String)

Types

Key
Link copied to clipboard
object Key : CoroutineContext.Key<CoroutineName>

Key for CoroutineName instance in the coroutine context.

Functions

toString
Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.

Properties

name
Link copied to clipboard
val name: String

User-defined coroutine name.

Sources

common source
Link copied to clipboard