AsyncQueue
No description provided
AsyncQueue
Properties
public entries: any
The queued entries
public exceptionHandler: any
public size: any
The total number of entries in this queue. Returns 0 if no entries are available.
Methods
public acquire(options?): AsyncQueueEntry
Acquire an entry.
| Parameter | Type | Optional | 
|---|---|---|
| options | AsyncQueueAcquisitionOptions | ✅ | 
public cancelAll(): void
Cancel all entries
public clear(consume): void
Clear entries queue
| Parameter | Type | Optional | Description | 
|---|---|---|---|
| consume | boolean | ❌ | Whether or not to consume all entries before clearing | 
public release(): void
Release the current acquisition and move to next entry.
public removeEntry(entry): boolean
Remove the given entry from the queue
| Parameter | Type | Optional | Description | 
|---|---|---|---|
| entry | AsyncQueueEntry | ❌ | The entry to remove |