Skip to content

Instantly share code, notes, and snippets.

@themaxhero
Created June 6, 2024 23:58
Show Gist options
  • Save themaxhero/d870e703e6a776361c4f8d124cb777c6 to your computer and use it in GitHub Desktop.
Save themaxhero/d870e703e6a776361c4f8d124cb777c6 to your computer and use it in GitHub Desktop.
1..100_000
|> Task.async_stream(&do_something/1)
|> Stream.map(fn {:ok, v} -> v end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment