LazyPromise
class LazyPromise implements PromiseInterface (View source)
Properties
| protected list<callable> | $pending | The callbacks to execute after the Guzzle Promise has been built. |
|
| protected PromiseInterface | $guzzlePromise | The promise built by the creator. |
Methods
PromiseInterface
buildPromise()
Build the promise from the promise builder.
PromiseInterface
then(callable|null $onFulfilled = null, callable|null $onRejected = null)
No description
PromiseInterface
otherwise(callable $onRejected)
No description
string
getState()
No description
void
resolve($value)
No description
void
reject($reason)
No description
void
cancel()
No description
wait(bool $unwrap = true)
No description
bool
promiseNeedsBuilt()
Determine if the promise has been created from the promise builder.
Details
__construct(Closure $promiseBuilder)
No description
PromiseInterface
buildPromise()
Build the promise from the promise builder.
PromiseInterface
then(callable|null $onFulfilled = null, callable|null $onRejected = null)
No description
PromiseInterface
otherwise(callable $onRejected)
No description
string
getState()
No description
void
resolve($value)
No description
void
reject($reason)
No description
void
cancel()
No description
wait(bool $unwrap = true)
No description
bool
promiseNeedsBuilt()
Determine if the promise has been created from the promise builder.