class Async::Promise

def failed?

@returns [Boolean] Whether the promise failed with an exception.
def failed?
	@mutex.synchronize{@resolved == :failed}
end