Queue extends Queue
Table of Contents
Methods
- __construct() : mixed
- add() : void
- Adds the promise to the queue.
- delete() : void
- wait() : array<string|int, Promise>
- Waits for promises and returns an array with fullfilled or rejected promises.
Methods
__construct()
public
__construct([bool $backgroundJob = true ]) : mixed
Parameters
- $backgroundJob : bool = true
add()
Adds the promise to the queue.
public
add(Promise $promise) : void
Parameters
- $promise : Promise
delete()
public
delete(string $promiseId) : void
Parameters
- $promiseId : string
wait()
Waits for promises and returns an array with fullfilled or rejected promises.
public
wait([Promise|null $targetPromise = null ]) : array<string|int, Promise>
Parameters
- $targetPromise : Promise|null = null
-
If specified, returns on fullfilling or rejecting this promise