lib/phantom_proxy.rb in phantom_proxy-1.3.6 vs lib/phantom_proxy.rb in phantom_proxy-1.3.7

- old
+ new

@@ -84,9 +84,17 @@ def self.always_iframe=(obj) @always_iframe=obj end + def self.threadpool_size=(obj) + @threadpool_size=obj.to_i + end + + def self.threadpool_size + @threadpool_size + end + def self.wait_for(op = nil) fiber = Fiber.current EM.defer(op, Proc.new {|result| fiber.resume result })