class CoroutineInfo

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


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.

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


Link copied to clipboard
val context: CoroutineContext

Coroutine context of the coroutine

Link copied to clipboard
val creationStackTrace: List<StackTraceElement>

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

Link copied to clipboard
val job: Job?

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

Link copied to clipboard
val state: State

Last observed state of the coroutine