Execution
Kind: global interface
- Execution
- .append(jobs)
- .execute(…args) ⇒
Promise
execution.append(jobs)
Adds a new job to be executed. The job is appended at the end of the list of current jobs therefore is executed last.
Kind: instance method of Execution
Param | Type | Description |
---|---|---|
jobs | Array.<function(): Promise> |
The jobs to be executed. |
execution.execute(…args) ⇒ Promise
Start executing collected jobs. In the end a Promise
is returned
with a resulting value. On the returned Promise
a catch
method can be called to prevent any unwanted interruption.
Kind: instance method of Execution
Param | Type | Description |
---|---|---|
…args | any |
Arguments to be passed when executing jobs |