Created
February 6, 2019 11:46
-
-
Save dinocosta/6a16d2746f09f28ff25609af6bef2b88 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 1..10 | |
| |> Task.async_stream(fn(number) -> number + 1 end) | |
| |> Enum.map(fn({:ok, result}) -> result end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment