Method: Async::Task#run
- Defined in:
- lib/async/task.rb
#run(*args) ⇒ Object
Resume the execution of the task.
108 109 110 111 112 113 114 115 |
# File 'lib/async/task.rb', line 108 def run(*args) if @status == :initialized @status = :running @fiber.resume(*args) else raise RuntimeError, "Task already running!" end end |