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
common
fun CoroutineName(name: String)

Types

Key
Link copied to clipboard
common
object Key : CoroutineContext.Key<CoroutineName>
Key for CoroutineName instance in the coroutine context.

Functions

toString
Link copied to clipboard
common
open override fun toString(): String
Returns a string representation of the object.

Properties

name
Link copied to clipboard
common
val name: String
User-defined coroutine name.

Sources

common source
Link copied to clipboard