lib/async/scheduler.rb in async-1.28.4 vs lib/async/scheduler.rb in async-1.28.5
- old
+ new
@@ -85,10 +85,10 @@
::Process::Status.wait(pid, flags)
end.value
end
def kernel_sleep(duration)
- @reactor.sleep(duration)
+ self.block(nil, duration)
end
def block(blocker, timeout)
@reactor.block(blocker, timeout)
end