aboutsummaryrefslogtreecommitdiffstats
path: root/kotlinx-coroutines-core/common/src/flow/internal/NopCollector.kt
diff options
context:
space:
mode:
Diffstat (limited to 'kotlinx-coroutines-core/common/src/flow/internal/NopCollector.kt')
-rw-r--r--kotlinx-coroutines-core/common/src/flow/internal/NopCollector.kt13
1 files changed, 13 insertions, 0 deletions
diff --git a/kotlinx-coroutines-core/common/src/flow/internal/NopCollector.kt b/kotlinx-coroutines-core/common/src/flow/internal/NopCollector.kt
new file mode 100644
index 00000000..d1b6ad2b
--- /dev/null
+++ b/kotlinx-coroutines-core/common/src/flow/internal/NopCollector.kt
@@ -0,0 +1,13 @@
+/*
+ * Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
+ */
+
+package kotlinx.coroutines.flow.internal
+
+import kotlinx.coroutines.flow.*
+
+internal object NopCollector : FlowCollector<Any?> {
+ override suspend fun emit(value: Any?) {
+ // does nothing
+ }
+} \ No newline at end of file