~singpolyma/em_promise.rb

47034fc842f10f0029b337fa8e35c3c6fe75f0d5 — Stephen Paul Weber 30 days ago 3b7ee7c master 0.0.4
Not ready once Fiber has started either
1 files changed, 1 insertions(+), 1 deletions(-)

M lib/em_promise.rb
M lib/em_promise.rb => lib/em_promise.rb +1 -1
@@ 13,10 13,10 @@ class EMPromise < Promise
			@fiber = Fiber.new do |blk|
				Thread.current[:_em_promise_trampoline] = self
				loop do
					self.ready = false
					result = blk.call
					self.ready = true
					blk = Fiber.yield result
					self.ready = false
				end
			end
		end