Created
August 9, 2012 18:48
-
-
Save fbernier/3307057 to your computer and use it in GitHub Desktop.
any reason to break?
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' | |
class MyClass | |
include Celluloid | |
def do_some | |
'yo' | |
end | |
end | |
a = Myclass.new | |
future = Celluloid::Future.new do | |
a.do_some | |
end | |
p future.value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment