FlowCollector#invoke

This commit is contained in:
InsanusMokrassar 2020-11-26 15:02:30 +06:00
parent 023f841fb5
commit c201866c51
2 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,8 @@
* `Pagination` * `Pagination`
* `Common` * `Common`
* `Pagination` got new extension: `Pagination#isFirstPage` * `Pagination` got new extension: `Pagination#isFirstPage`
* `Coroutines`:
* New extension `FlowCollector#invoke` has been added
## 0.4.5 ## 0.4.5

View File

@ -0,0 +1,5 @@
package dev.inmo.micro_utils.coroutines
import kotlinx.coroutines.flow.FlowCollector
suspend inline operator fun <T> FlowCollector<T>.invoke(value: T) = emit(value)