CoroutineInfo

class CoroutineInfo

Class describing coroutine info such as its context, state and stacktrace.

Functions

lastObservedStackTrace
Link copied to clipboard
fun lastObservedStackTrace(): List<StackTraceElement>

Last observed stacktrace of the coroutine captured on its suspension or resumption point. It means that for running coroutines resulting stacktrace is inaccurate and reflects stacktrace of the resumption point, not the actual current stacktrace.

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

Properties

context
Link copied to clipboard
val context: CoroutineContext

Coroutine context of the coroutine

creationStackTrace
Link copied to clipboard
val creationStackTrace: List<StackTraceElement>

Creation stacktrace of the coroutine. Can be empty if DebugProbes.enableCreationStackTraces is not set.

job
Link copied to clipboard
val job: Job?

Job associated with a current coroutine or null. May be later used in DebugProbes.printJob.

state
Link copied to clipboard
val state: State

Last observed state of the coroutine