Skip to content

Instantly share code, notes, and snippets.

@halorgium
Created March 27, 2013 01:06
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 halorgium/14465667d26e4b053180 to your computer and use it in GitHub Desktop.
Save halorgium/14465667d26e4b053180 to your computer and use it in GitHub Desktop.
Run this with celluloid and wait for the PID and then ^C
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