Constructor
new ExecutionQueue()
Methods
enqueue(operation) → {Promise}
Allows to enter a new function into the queue
Parameters:
Name | Type | Description |
---|---|---|
operation |
function | the function that is supposed to be executed |
Returns:
- a promise that resolves as soon as the operation was executed
- Type
- Promise