Method: Async::Task#run

Defined in:
lib/async/task.rb

#run(*args) ⇒ Object

Resume the execution of the task.



113
114
115
116
117
118
119
120
# File 'lib/async/task.rb', line 113

def run(*args)
	if @status == :initialized
		@status = :running
		@fiber.resume(*args)
	else
		raise RuntimeError, "Task already running!"
	end
end