lib/async/scheduler.rb in async-2.6.3 vs lib/async/scheduler.rb in async-2.6.4
- old
+ new
@@ -169,20 +169,14 @@
def io_wait(io, events, timeout = nil)
fiber = Fiber.current
if timeout
timer = @timers.after(timeout) do
- fiber.raise(TimeoutError)
+ fiber.transfer
end
end
- # Console.logger.info(self, "-> io_wait", fiber, io, events)
- events = @selector.io_wait(fiber, io, events)
- # Console.logger.info(self, "<- io_wait", fiber, io, events)
-
- return events
- rescue TimeoutError
- return false
+ return @selector.io_wait(fiber, io, events)
ensure
timer&.cancel
end
if ::IO::Event::Support.buffer?