@revideo/core / threading / ThreadGenerator
Type Alias: ThreadGenerator
ThreadGenerator =
Generator<ThreadGenerator|Promise<any> |Promisable<any> |void,void,Thread|any>
Defined in: threading/ThreadGenerator.ts:41
The main generator type produced by all generator functions in Motion Canvas.
Example
Yielded values can be used to control the flow of animation:
Progress to the next frame:
yield;Run another generator synchronously:
yield* generatorFunction();Run another generator concurrently:
const task = yield generatorFunction();Await a Promise:
const result = yield asyncFunction();