Skip to content

Instantly share code, notes, and snippets.

@manlon
Last active December 20, 2015 02:49
Show Gist options
  • Save manlon/6058884 to your computer and use it in GitHub Desktop.
Save manlon/6058884 to your computer and use it in GitHub Desktop.
require 'rubygems'
gem 'eventmachine'
require 'eventmachine'
begin
raise "foo"
rescue
Thread.new{ EM.run }
EM.schedule{ puts "$! in EM thread " + $!.inspect }
end
EM.reactor_thread.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment