Class: SerialGroup

SerialGroup(runnables)

A Runnable composed of sub-Runnables (such as jobs or concurrent groups) running one after another. A new Runnable is started only when the previous one completes. The sequence completes when the last Runnable has completed (or when any Runnable fails).

Constructor

new SerialGroup(runnables)

Parameters:
Name Type Description
runnables The work items to be run in sequence
Source:

Methods

run()

Runs the serial group.
Source:
Returns:
A Promise which completes when the last item in the group completes (or any item fails). If all items ran successfully, the Promise resolves; if any item failed (that is, its Runnable#run Promise rejected), the Promise rejects.