whenReady
function whenReady(sync): Effect<void, EffectMotionError>;
Function: whenReady()
function whenReady(sync): Effect<void, EffectMotionError>;Defined in: packages/renderer/src/Sync.ts:371
Wait for the async work a sync registered — glyph layouts and image decodes — including inside nested sub-compositions.
Parameters
| Parameter | Type |
|---|---|
sync | Sync |
Returns
Effect<void, EffectMotionError>
Remarks
Both render paths call this before drawing, which is what guarantees a frame never presents half-built text or a missing texture. A failed layout or decode surfaces as a typed error naming the resource, rather than silently rendering nothing.