Skip to content

Files

Latest commit

 

History

History
27 lines (17 loc) · 524 Bytes

Lint-IncompatibleIoSelectWithFiberScheduler.md

File metadata and controls

27 lines (17 loc) · 524 Bytes

Pattern: Use of incompatible IO.select with Fiber Scheduler

Issue: -

Description

This rule checks for IO.select that is incompatible with Fiber Scheduler since Ruby 3.0.

Examples

# bad
IO.select([io], [], [], timeout)

# good
io.wait_readable(timeout)

# bad
IO.select([], [io], [], timeout)

# good
io.wait_writable(timeout)

Further Reading