Class: Nl::Async::Drivers::Thread
- Inherits:
-
Object
- Object
- Nl::Async::Drivers::Thread
- Defined in:
- nl/lib/nl/async/driver.rb
Instance Method Summary collapse
Instance Method Details
#start(&block) ⇒ Object
5 6 7 |
# File 'nl/lib/nl/async/driver.rb', line 5 def start(&block) ::Thread.new(&block) end |
#stop(task) ⇒ Object
9 10 11 |
# File 'nl/lib/nl/async/driver.rb', line 9 def stop(task) task.join end |