PlatformThreadContextElement



We use the PlatformThreadContextElement construct to know when a coroutine has suspended, and about to resume on a Thread.

Summary

Public functions

abstract Unit
Cmn
open CoroutineContext.Element?
Cmn

Public properties

open String
Cmn
open List<Long>
Cmn
open String
Cmn

Inherited functions

From kotlin.coroutines.CoroutineContext
open operator CoroutineContext
Cmn
From kotlin.coroutines.CoroutineContext.Element
open R
<R : Any?> fold(initial: R, operation: (CoroutineContext.Element, R) -> R)
Cmn
open operator E?
Cmn
open CoroutineContext
Cmn

Public functions

close

abstract fun close(): Unit

contextElementOrNull

@DelicateTracingApi
open fun contextElementOrNull(): CoroutineContext.Element?
Returns
CoroutineContext.Element?

a CoroutineContext.Element that needs to be installed in the kotlinx.coroutines.currentCoroutineContext prior to dispatching the suspending block of code being traced; if the token is being used in a suspending context.

Public properties

category

open var categoryString

flowIds

open val flowIdsList<Long>

name

open var nameString