by Jtsummers · 4y ago · 0 comments
do_work = Task.async(fn -> long_calculation() end)
That kicks off the new task, at some point later we should obtain and examine the result: result = Task.await(do_work)
https://hexdocs.pm/elixir/1.13/Task.html#await/2But why would anybody "kick off a task without the await part"?