-
-
Save halorgium/14465667d26e4b053180 to your computer and use it in GitHub Desktop.
Run this with celluloid and wait for the PID and then ^C
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 Foo | |
include Celluloid | |
def bar | |
Kernel.sleep 5 | |
end | |
end | |
foo = Foo.new | |
puts Process.pid | |
p foo.bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment