plus for flows

This commit is contained in:
InsanusMokrassar committed 2020-11-12 22:16:21 +06:00
1 parent 22cd440dd7
commit d4b4547718
2 files changed
+11

No files matched your search

@@ -0,0 +1,8 @@
@file:Suppress("NOTHING_TO_INLINE")
package dev.inmo.micro_utils.coroutines
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.merge
inline operator fun <T> Flow<T>.plus(other: Flow<T>) = merge(this, other)