Amp\Failure class Failure implements Amp\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 function onResolve(callable $onResolved)
No documentation.
Type Parameter Description Default Value
callable $onResolved No documentation. none