Class: Rbgo::CoRun::Scheduler
- Inherits:
-
Object
- Object
- Rbgo::CoRun::Scheduler
- Includes:
- Singleton
- Defined in:
- lib/rbgo/corun.rb
Instance Attribute Summary collapse
-
#check_interval ⇒ Object
Returns the value of attribute check_interval.
-
#num_thread ⇒ Object
Returns the value of attribute num_thread.
Instance Method Summary collapse
Instance Attribute Details
#check_interval ⇒ Object
Returns the value of attribute check_interval.
42 43 44 |
# File 'lib/rbgo/corun.rb', line 42 def check_interval @check_interval end |
#num_thread ⇒ Object
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 |