mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-01-09 09:19:57 +00:00
FlowCollector#invoke
This commit is contained in:
parent
023f841fb5
commit
c201866c51
CHANGELOG.md
coroutines/src/commonMain/kotlin/dev/inmo/micro_utils/coroutines
@ -5,6 +5,8 @@
|
||||
* `Pagination`
|
||||
* `Common`
|
||||
* `Pagination` got new extension: `Pagination#isFirstPage`
|
||||
* `Coroutines`:
|
||||
* New extension `FlowCollector#invoke` has been added
|
||||
|
||||
## 0.4.5
|
||||
|
||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user