Amp\Internal\PrivatePromise class PrivatePromise implements Amp\Promise

Wraps a Promise instance that has public methods to resolve and fail the promise into an object that only allows access to the public API methods.

Summary

Properties

Methods

Properties

Methods

__construct — public function __construct(Amp\Promise $promise)
No documentation.
Type Parameter Description Default Value
Amp\Promise $promise No documentation. none
onResolve — public function onResolve(callable $onResolved)
No documentation.
Type Parameter Description Default Value
callable $onResolved No documentation. none