plus for flows

This commit is contained in:
InsanusMokrassar 2020-11-12 22:16:21 +06:00
parent 22cd440dd7
commit d4b4547718
2 changed files with 11 additions and 0 deletions

View File

@ -2,6 +2,9 @@
## 0.3.3
* `Coroutines`:
* New extension `Flow<T>#plus`
## 0.3.2
* `Versions`:

View File

@ -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)