This file contains hidden or 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 C | |
include Celluloid | |
def initialize(&block) | |
@block = block | |
end | |
def call | |
@block.call | |
end | |
end | |
class D | |
include Celluloid | |
def run | |
c = C.new { puts 'foo' } | |
c.call | |
end | |
end | |
D.new.run |
This file contains hidden or 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
foo | |
D, [2013-05-11T00:39:46.596057 #48493] DEBUG -- : Terminating 2 actors... | |
D, [2013-05-11T00:39:46.596526 #48493] DEBUG -- : Shutdown completed cleanly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment