RIP
Tutorial
Tags
Topics
Examples
eBooks
Tutorial by Examples
Doing work in the background
task = Task.async(fn -> expensive_computation end) do_something_else result = Task.await(task)
Parallel processing
crawled_site = ["http://www.google.com", "http://www.stackoverflow.com"] |> Enum.map(fn site -> Task.async(fn -> crawl(site) end) end) |> Enum.map(&Task.await/1)
Page 1 of 1
1
Cookie
This website stores cookies on your computer.
We use cookies to enhance your experience on our website and deliver personalized content.
For more details on our cookie usage, please review our
Cookie Policy
and
Privacy Policy
Accept all Cookies
Leave this website