jvmMain.debug.internal.DebugProbes.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlinx-coroutines-core-jvm Show documentation
Show all versions of kotlinx-coroutines-core-jvm Show documentation
Coroutines support libraries for Kotlin
The newest version!
@file:Suppress("unused")
package kotlinx.coroutines.debug.internal
import kotlin.coroutines.*
/*
* This class is used by ByteBuddy from kotlinx-coroutines-debug as kotlin.coroutines.jvm.internal.DebugProbesKt replacement.
* In theory, it should belong to kotlinx-coroutines-debug, but placing it here significantly simplifies the
* Android AS debugger that does on-load DEX transformation
*/
// Stubs which are injected as coroutine probes. Require direct match of signatures
internal fun probeCoroutineResumed(frame: Continuation<*>) = DebugProbesImpl.probeCoroutineResumed(frame)
internal fun probeCoroutineSuspended(frame: Continuation<*>) = DebugProbesImpl.probeCoroutineSuspended(frame)
internal fun probeCoroutineCreated(completion: Continuation): Continuation =
DebugProbesImpl.probeCoroutineCreated(completion)