-
-
Save PatilShreyas/b3ad20f0fbc2a404c26762daea026c53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Transforms this flow into producing the subsequent items in the chunks (List<T>) after every | |
* specified duration. | |
*/ | |
fun <T> Flow<T>.chunked(duration: Duration): Flow<List<T>> { | |
return TimeChunkedFlow(this, duration) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment