Class: Rbgo::CoRun::Scheduler

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/rbgo/corun.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#check_intervalObject

Returns the value of attribute check_interval.



103
104
105
# File 'lib/rbgo/corun.rb', line 103

def check_interval
  @check_interval
end

#io_machineObject

Returns the value of attribute io_machine.



103
104
105
# File 'lib/rbgo/corun.rb', line 103

def io_machine
  @io_machine
end

#num_threadObject

Returns the value of attribute num_thread.



103
104
105
# File 'lib/rbgo/corun.rb', line 103

def num_thread
  @num_thread
end

Instance Method Details

#schedule(routine) ⇒ Object



266
267
268
269
# File 'lib/rbgo/corun.rb', line 266

def schedule(routine)
  task_queue << routine
  nil
end