Skip to content

Instantly share code, notes, and snippets.

@digitalextremist
Last active December 22, 2015 11:29
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 digitalextremist/6466363 to your computer and use it in GitHub Desktop.
Save digitalextremist/6466363 to your computer and use it in GitHub Desktop.
Futures interface silent death repro?
class Muile
include Celluloid
def router method, *args
puts "Called Muile.#{method}"
if respond_to? "#{method}!"
puts "Calling Muile.#{method}!"
send "#{method}!", *args
else
raise "No method found in Muile for #{method}"
end
end
def work! job
puts "Muile.work!"
#de do job..
end
end
module Mula
@muile = Muile.pool( size: 9 )
def self.method_missing( method, *args )
puts "Mula.#{method}"
#de .. pre-initializations
@muile.future.router method, *args
end
end
puts "starting..."
Mula.work #de silently dies?
puts "...finished"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment