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