digital-fabric / libev_scheduler

A libev-based fiber scheduler for Ruby 3.0
MIT License
34 stars 3 forks source link

Support IO#wait and timeouts #1

Closed wjordan closed 3 years ago

wjordan commented 3 years ago

The #io_wait implementation expects to return the subset of events that are ready immediately, not a Scheduler object.

Without this PR the added timeout test (and the existing test with added wait_readable / wait_writable assertions) fail with TypeError: no implicit conversion of Libev::Scheduler into Integer.