aboutsummaryrefslogtreecommitdiffstats
path: root/kotlinx-coroutines-debug/src/internal/NoOpProbes.kt
diff options
context:
space:
mode:
Diffstat (limited to 'kotlinx-coroutines-debug/src/internal/NoOpProbes.kt')
-rw-r--r--kotlinx-coroutines-debug/src/internal/NoOpProbes.kt19
1 files changed, 19 insertions, 0 deletions
diff --git a/kotlinx-coroutines-debug/src/internal/NoOpProbes.kt b/kotlinx-coroutines-debug/src/internal/NoOpProbes.kt
new file mode 100644
index 00000000..d32eeb67
--- /dev/null
+++ b/kotlinx-coroutines-debug/src/internal/NoOpProbes.kt
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
+ */
+
+@file:Suppress("unused", "UNUSED_PARAMETER")
+
+package kotlinx.coroutines.debug.internal
+
+import kotlin.coroutines.*
+
+/*
+ * Empty class used to replace installed agent in the end of debug session
+ */
+@JvmName("probeCoroutineResumed")
+internal fun probeCoroutineResumedNoOp(frame: Continuation<*>) = Unit
+@JvmName("probeCoroutineSuspended")
+internal fun probeCoroutineSuspendedNoOp(frame: Continuation<*>) = Unit
+@JvmName("probeCoroutineCreated")
+internal fun <T> probeCoroutineCreatedNoOp(completion: kotlin.coroutines.Continuation<T>): kotlin.coroutines.Continuation<T> = completion