lib/em-midori/promise.rb in em-midori-0.0.9.1 vs lib/em-midori/promise.rb in em-midori-0.0.9.2
- old
+ new
@@ -11,10 +11,10 @@
def async_internal(fiber)
chain = ->(result) {
return if result.class != Promise
result.then(->(val) {
- chain.call(fiber.resume(val))
+ chain.call(fiber.resume(val))
})
}
chain.call(fiber.resume)
end