Created
January 21, 2021 09:28
-
-
Save hasankucuk/0729042b0458336e9d4677444d542a2f to your computer and use it in GitHub Desktop.
flow api
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
val flow: Flow<Int> = flow { delay(100) for(i in 1..10) { emit(i) } }.map { delay(100) it * it } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment