lib/async/scheduler.rb in async-2.0.2 vs lib/async/scheduler.rb in async-2.0.3

- old
+ new

@@ -100,14 +100,10 @@ def raise(*arguments) @selector.raise(*arguments) end def resume(fiber, *arguments) - if Fiber.scheduler - @selector.resume(fiber, *arguments) - else - @selector.push(fiber) - end + @selector.resume(fiber, *arguments) end # Invoked when a fiber tries to perform a blocking operation which cannot continue. A corresponding call {unblock} must be performed to allow this fiber to continue. # @asynchronous May only be called on same thread as fiber scheduler. def block(blocker, timeout)