Created
September 5, 2021 11:20
-
-
Save rssh/10466715172b70e49a4870b6dc9c7392 to your computer and use it in GitHub Desktop.
Generator usage in dotty-cps-async
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 stream = asyncStream[Stream[Throwable,Int]] { out => | |
for(i <- 1 to N) { | |
out.emit(i) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment