Method | Description | |
---|---|---|
__construct ( Http\Promise\Promise $promise ) | set the promise to be wrapped. | |
getState ( ) | Hand back the state. | |
then ( callable $onFulfilled = null, callable $onRejected = null ) | Hand off the response functions to the original promise and return a custom response or exception. | |
wait ( boolean $unwrap = true ) : |
Wraps the wait function and returns a custom response or throws a custom exception. |
public __construct ( Http\Promise\Promise $promise ) | ||
$promise | Http\Promise\Promise |