Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

IO#wait_priority

io.wait_priority → truthy or falsy
io.wait_priority(timeout) → truthy or falsy

Waits until IO is priority and returns a truthy value or a falsy value when times out. Priority data is sent and received using the Socket::MSG_OOB flag and is typically limited to streams.

You must require ‘io/wait’ to use this method.

See also #wait #wait_readable #ungetc #wait_writable also in 4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0