task = Task.async(fn -> do_some_work() end)
res = do_some_other_work()
res + Task.await(task)
Last active
August 29, 2015 14:01
-
-
Save nicholasf/393da38a21db2dfd9416 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment