mirror of
				https://github.com/InsanusMokrassar/MicroUtils.git
				synced 2025-11-03 21:51:59 +00:00 
			
		
		
		
	FlowCollector#invoke
This commit is contained in:
		@@ -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)
 | 
			
		||||
		Reference in New Issue
	
	Block a user