All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmMain.debug.internal.DebugProbes.kt Maven / Gradle / Ivy

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)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy