Last active
December 22, 2015 11:29
-
-
Save digitalextremist/6466363 to your computer and use it in GitHub Desktop.
Futures interface silent death repro?
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
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