Amp\Success classSuccess implementsAmp\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 functiononResolve(callable$onResolved)
No documentation.
Type Parameter Description Default Value
callable $onResolved No documentation. none