Skip to content

Instantly share code, notes, and snippets.

@Poincare
Created July 24, 2012 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Poincare/3169318 to your computer and use it in GitHub Desktop.
Save Poincare/3169318 to your computer and use it in GitHub Desktop.
require 'celluloid'
def some_method(future)
#do something crazy
val = future.value
#do something with val
end
future = Celluloid::Future.new do
#incredibly complex computation
end
some_method(future)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment