• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3  */
4 
5 @file:Suppress("unused")
6 
7 package kotlinx.coroutines.debug.internal
8 
9 import kotlin.coroutines.*
10 
11 /*
12  * This class is used by ByteBuddy from kotlinx-coroutines-debug as kotlin.coroutines.jvm.internal.DebugProbesKt replacement.
13  * In theory, it should belong to kotlinx-coroutines-debug, but placing it here significantly simplifies the
14  * Android AS debugger that does on-load DEX transformation
15  */
16 
17 // Stubs which are injected as coroutine probes. Require direct match of signatures
probeCoroutineResumednull18 internal fun probeCoroutineResumed(frame: Continuation<*>) = DebugProbesImpl.probeCoroutineResumed(frame)
19 
20 internal fun probeCoroutineSuspended(frame: Continuation<*>) = DebugProbesImpl.probeCoroutineSuspended(frame)
21 internal fun <T> probeCoroutineCreated(completion: Continuation<T>): Continuation<T> =
22     DebugProbesImpl.probeCoroutineCreated(completion)
23