Amp\Success class Success implements Amp\Promise

Creates a successful promise using the given value (which can be any value except an object implementing Amp\Promise or React\Promise\PromiseInterface).

Summary

Properties

Methods

Properties

Methods

__construct — public function __construct(mixed $value = null)
No documentation.
Type Parameter Description Default Value
mixed $value Anything other than a Promise object. null
onResolve — public function onResolve(callable $onResolved)
No documentation.
Type Parameter Description Default Value
callable $onResolved No documentation. none