Created
July 24, 2012 10:35
-
-
Save Poincare/3169318 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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