Methods
_dequeue()
Remove and execute the next promise on the stack from the queue.
- Source:
Returns:
true if successful else false.
enqueue(promise)
Add a function containing a promise to the queue.
Parameters:
Name | Type | Description |
---|---|---|
promise |
function | Callback function that returns a promise. |
- Source:
Returns:
Promise that resolves the outcome of the input promise when it is dequeued.