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