Skip to Content

@revideo/core


@revideo/core / flow / waitFor

Function: waitFor()

waitFor(seconds?, after?): ThreadGenerator

Defined in: flow/scheduling.ts:21 

Wait for the given amount of time.

Parameters

seconds?

number = 0

The relative time in seconds.

after?

ThreadGenerator

An optional task to be run after the function completes.

Returns

ThreadGenerator

Example

// current time: 0s yield waitFor(2); // current time: 2s yield waitFor(3); // current time: 5s
© 2026 Haven Technologies, Inc.
Function: waitFor() – Revideo