Skip to content

Instantly share code, notes, and snippets.

@bcat-eu
Created March 5, 2017 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcat-eu/567c0e6bd18121d36faaa3b63b214bf8 to your computer and use it in GitHub Desktop.
Save bcat-eu/567c0e6bd18121d36faaa3b63b214bf8 to your computer and use it in GitHub Desktop.
def crawl(config) do
config
|> Enum.map(&Task.Supervisor.async(TaskModule, fn() -> check(&1) end))
|> Enum.map(&Task.await(&1))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment