Pattern: Use of incompatible IO.select
with Fiber Scheduler
Issue: -
This rule checks for IO.select
that is incompatible with Fiber Scheduler since Ruby 3.0.
# bad
IO.select([io], [], [], timeout)
# good
io.wait_readable(timeout)
# bad
IO.select([], [io], [], timeout)
# good
io.wait_writable(timeout)