Amp\Failure classFailure implementsAmp\Promise

Creates a failed promise using the given exception.

Summary

Properties

Methods

Properties

Methods

__construct —public function__construct(Throwable$exception)
No documentation.
Type Parameter Description Default Value
Throwable $exception Rejection reason. none
onResolve —public functiononResolve(callable$onResolved)
No documentation.
Type Parameter Description Default Value
callable $onResolved No documentation. none