Method: Goru::Routines::IO#initialize
- Defined in:
- lib/goru/routines/io.rb
#initialize(state = nil, io:, intent:, &block) ⇒ IO
Returns a new instance of IO.
12 13 14 15 16 17 18 19 20 |
# File 'lib/goru/routines/io.rb', line 12 def initialize(state = nil, io:, intent:, &block) super(state, &block) @io = io @intent = normalize_intent(intent) @status = :selecting @monitor = nil @finishers = [] end |