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.
-
#io_machine ⇒ Object
Returns the value of attribute io_machine.
-
#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.
103 104 105 |
# File 'lib/rbgo/corun.rb', line 103 def check_interval @check_interval end |
#io_machine ⇒ Object
Returns the value of attribute io_machine.
103 104 105 |
# File 'lib/rbgo/corun.rb', line 103 def io_machine @io_machine end |
#num_thread ⇒ Object
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 |