effect-motion
API Referenceeffect-motionNamespacesSceneInterfaces

BranchHandle

Handle to a branch of animation (a fork, background, or played scene).

Interface: BranchHandle<A, E>

Defined in: packages/motion/src/Scene.ts:889

Handle to a branch of animation (a fork, background, or played scene). finished resolves at the branch's SEMANTIC end — Scene.finish or completion, whichever comes first. Awaiting it from scene code HOLDS the scene (the waiter keeps ticking frames, like Scene.sleep), so the rest of the scene stays live while you wait. fiber is the branch's physical execution — interrupt it to bound a tail.

Extended by

Type Parameters

Type ParameterDefault type
Aunknown
Enever

Properties

fiber

readonly fiber: Fiber<A, E>;

Defined in: packages/motion/src/Scene.ts:891


finished

readonly finished: Effect<void, never, Runner>;

Defined in: packages/motion/src/Scene.ts:890

On this page