diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-08-20 13:49:09 +1200 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-09-14 16:44:09 +1200 |
commit | 905e9c8093b2bb06def609975929465be0f41a0c (patch) | |
tree | 753a2894322c827b22b976322906d79eef14da13 /test | |
parent | 6747cb575414cf781c79c263f68d7b70778efa24 (diff) |
Simplify bitmasks for IO events.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3434
Diffstat (limited to 'test')
-rw-r--r-- | test/fiber/scheduler.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fiber/scheduler.rb b/test/fiber/scheduler.rb index 740496674a..5508f21cf7 100644 --- a/test/fiber/scheduler.rb +++ b/test/fiber/scheduler.rb @@ -119,11 +119,11 @@ class Scheduler end def wait_any(io, events, duration) - unless (events & IO::WAIT_READABLE).zero? + unless (events & IO::READABLE).zero? @readable[io] = Fiber.current end - unless (events & IO::WAIT_WRITABLE).zero? + unless (events & IO::WRITABLE).zero? @writable[io] = Fiber.current end |