@univerjs/core v0.5.0-beta.1 • Docs
Function: sequence()
function sequence(tasks): ISequenceExecuteResult
Execute tasks in sequence, if one of the tasks return false, the sequence will be stopped.
Parameters
Parameter | Type | Description |
---|---|---|
tasks | () => boolean [] | All tasks that need to be triggered. |
Returns
Returns true
if all tasks are executed successfully, otherwise false
and index of the task that returns false.
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/sequence.ts:58