Skip to content

Instantly share code, notes, and snippets.

@gleber
Created November 18, 2012 20:38
Show Gist options
  • Save gleber/4107278 to your computer and use it in GitHub Desktop.
Save gleber/4107278 to your computer and use it in GitHub Desktop.
1> F1 = future:new(fun() -> timer:sleep(3000), 10 end).
{future,<0.36.0>,#Ref<0.0.0.1660>,undefined}
2> F2 = future:new(fun() -> timer:sleep(3000), 5 end).
{future,<0.39.0>,#Ref<0.0.0.2014>,undefined}
3> F2:get() * F1:get().
50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment