Methods |
public static all( $promises, $recursive = false) Given an array of promises, return a promise that is fulfilled when all The promise's fulfillment value is an array with fulfillment values at
|
public static any( $promises) Like some(), with 1 as count. However, if the promise fulfills, the
|
public static inspect(GuzzleHttp Synchronously waits on a promise to resolve and returns an inspection Returns a state associative array containing a "state" key mapping to a
|
public static inspectAll( $promises) Waits on all of the provided promises, but does not unwrap rejected Returns an array of inspection state arrays.
|
public static queue(?GuzzleHttp Get the global task queue used for promise resolution. This task queue MUST be run in an event loop in order for promises to be
}
|
public static settle( $promises) Returns a promise that is fulfilled when all of the provided promises have The returned promise is fulfilled with an array of inspection state arrays.
|
public static some( $count, $promises) Initiate a competitive race between multiple promises or values (values When count amount of promises have been fulfilled, the returned promise This promise is rejected with a {@see \AggregateException} if the number
|
public static task(callable $task) Adds a function to run in the task queue when it is next
|
public static unwrap( $promises) Waits on all of the provided promises and returns the fulfilled values. Returns an array that contains the value of each promise (in the same
|
Methods |
public static all( $promises, $recursive = false) Given an array of promises, return a promise that is fulfilled when all The promise's fulfillment value is an array with fulfillment values at
|
public static any( $promises) Like some(), with 1 as count. However, if the promise fulfills, the
|
public static inspect(GuzzleHttp Synchronously waits on a promise to resolve and returns an inspection Returns a state associative array containing a "state" key mapping to a
|
public static inspectAll( $promises) Waits on all of the provided promises, but does not unwrap rejected Returns an array of inspection state arrays.
|
public static queue(?GuzzleHttp Get the global task queue used for promise resolution. This task queue MUST be run in an event loop in order for promises to be
}
|
public static settle( $promises) Returns a promise that is fulfilled when all of the provided promises have The returned promise is fulfilled with an array of inspection state arrays.
|
public static some( $count, $promises) Initiate a competitive race between multiple promises or values (values When count amount of promises have been fulfilled, the returned promise This promise is rejected with a {@see \AggregateException} if the number
|
public static task(callable $task) Adds a function to run in the task queue when it is next
|
public static unwrap( $promises) Waits on all of the provided promises and returns the fulfilled values. Returns an array that contains the value of each promise (in the same
|