class NIO::Monitor
def interests=(interests)
-
(Symbol)
- new interests
Parameters:
-
interests
(:r, :w, :rw, nil
) -- I/O readiness we're interested in (read/write/readwrite)
def interests=(interests) raise EOFError, "monitor is closed" if closed? raise ArgumentError, "bad interests: #{interests}" unless [:r, :w, :rw, nil].include?(interests) @interests = interests end