Sha256: d11694f83e651648f254b00639b85b615c108e33b4c144248ff08f0d83630240
Contents?: true
Size: 395 Bytes
Versions: 3
Compression:
Stored size: 395 Bytes
Contents
module NIO # Monitors watch IO objects for specific events class Monitor attr_reader :io, :interests attr_accessor :value # :nodoc def initialize(io, interests) @io, @interests = io, interests @closed = false end # Is this monitor closed? def closed?; @closed; end # Deactivate this monitor def close @closed = true end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nio4r-0.1.0-java | lib/nio/monitor.rb |
nio4r-0.1.0 | lib/nio/monitor.rb |
nio4r-0.0.1 | lib/nio/monitor.rb |