Queue extends Queue
Table of Contents
Methods
- __construct() : mixed
- __destruct() : mixed
- add() : void
- Adds the promise to the queue.
- 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
__destruct()
public
__destruct() : mixed
add()
Adds the promise to the queue.
public
add(Promise $promise) : void
Parameters
- $promise : Promise
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