@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?
An optional task to be run after the function completes.
Returns
Example
// current time: 0s
yield waitFor(2);
// current time: 2s
yield waitFor(3);
// current time: 5s