class Async::Task

def failed!(exception = false)

State transition into the failed state.
def failed!(exception = false)
	@result = exception
	@status = :failed
	
	if $DEBUG
		Fiber.blocking do
			$stderr.puts "Task #{self} failed:", exception.full_message
		end
	end
end