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.



42
43
44
# File 'lib/rbgo/corun.rb', line 42

def check_interval
  @check_interval
end

#num_threadObject

Returns the value of attribute num_thread.



42
43
44
# File 'lib/rbgo/corun.rb', line 42

def num_thread
  @num_thread
end

Instance Method Details

#schedule(routine) ⇒ Object



181
182
183
184
# File 'lib/rbgo/corun.rb', line 181

def schedule(routine)
  task_queue << routine
  nil
end