timeout = 5000
urls = 1..10 |> Enum.to_list
urls
|> Enum.map(fn url -> Task.async(url) end)
|> Enum.map(fn task -> Task.await(task, timeout) end)
If we take the above code as an example, aren’t we setting different timeouts for different tasks? Is that what a reader would expect?


















