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

Function beginSlide

packages/core/src/utils/beginSlide.ts:5–14  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

3import {useThread} from './useThread';
4
5export function* beginSlide(name: string): ThreadGenerator {
6 const {slides} = useScene();
7 const thread = useThread();
8 slides.register(name, thread.fixed);
9 yield;
10
11 while (slides.shouldWait(name)) {
12 yield;
13 }
14}

Callers 1

presentation.tsxFile · 0.90

Calls 4

useSceneFunction · 0.90
useThreadFunction · 0.90
registerMethod · 0.80
shouldWaitMethod · 0.80

Tested by

no test coverage detected