Method: Async::Task#run

Defined in:
lib/async/task.rb

#run(*arguments) ⇒ Object

Begin the execution of the task.



124
125
126
127
128
129
130
131
132
# File 'lib/async/task.rb', line 124

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