class Async::Task

def result

Access the result of the task without waiting. May be nil if the task is not completed. Does not raise exceptions.
def result
	value = @promise.value
	
	# For backward compatibility, return nil for cancelled tasks:
	if @promise.cancelled?
		nil
	else
		value
	end
end