Class: AbstractPromiseExecutor

AbstractPromiseExecutor

new AbstractPromiseExecutor()

The AbstractPromiseExceutor will execute a list of internal items taking into consideration async processing in each item and awaiting for their completion via the `Promise`s they return
Source:

Methods

_doExecute(method, items, svContext) → {Promise}

Method that actually does the execution of the items. If the item in the list does not return a `Promise`, this treats the call as sync and goes to the next item. If the item in the list uses the deprecated `callback.success()` or `callback.failure()`, it treats the call as sync as well. Only a `Promise` is treated as async and everything waits until its completion
Parameters:
Name Type Description
method String The function to execute on the item
items Object The items to iterate through
svContext SVContext The SVContex to use when calling the methods.
Source:
Returns:
The Promise that will have its `then` called when everything has completed
Type
Promise

(abstract) execute(svContext)

Start the execution
Parameters:
Name Type Description
svContext SVContext The SVContext to use for execution
Source: