MCPcopy
hub / github.com/midrender/revideo / sequence

Function sequence

packages/core/src/flow/sequence.ts:26–36  ·  view source on GitHub ↗
(
  delay: number,
  ...tasks: ThreadGenerator[]
)

Source from the content-addressed store, hash-verified

24 * @param tasks - A list of tasks to be run in a sequence.
25 */
26export function* sequence(
27 delay: number,
28 ...tasks: ThreadGenerator[]
29): ThreadGenerator {
30 for (const task of tasks) {
31 yield task;
32 yield* waitFor(delay);
33 }
34
35 yield* join(...tasks);
36}

Callers

nothing calls this directly

Calls 2

waitForFunction · 0.90
joinFunction · 0.90

Tested by

no test coverage detected