# File lib/nio/monitor.rb, line 26
    def interests=(interests)
      fail TypeError, "monitor is already closed" if closed?
      fail ArgumentError, "bad interests: #{interests}" unless [:r, :w, :rw].include?(interests)

      @interests = interests
    end