Executes all steps. If all steps are not Promises, they are executed immediately,
otherwise a Promise is returned.
Note: useDefer defaults to FIFO order; use mode: 'lifo' for LIFO (stack) order.
Parameters
expectSync: boolean = false
Returns Promise<void>
add: (obj:DisposableEntry)=>void
exec: (expectSync?:boolean)=>Promise<void>
Executes all steps. If all steps are not Promises, they are executed immediately,
otherwise a Promise is returned.
Note: useDefer defaults to FIFO order; use mode: 'lifo' for LIFO (stack) order.
Executes all steps. If all steps are not Promises, they are executed immediately, otherwise a Promise is returned. Note: useDefer defaults to FIFO order; use mode: 'lifo' for LIFO (stack) order.