@revideo/core / flow / all
Function: all()
all(…
tasks):ThreadGenerator
Defined in: flow/all.ts:21
Run all tasks concurrently and wait for all of them to finish.
Parameters
tasks
A list of tasks to run.
Returns
Example
// current time: 0s
yield* all(
rect.fill('#ff0000', 2),
rect.opacity(1, 1),
);
// current time: 2s