Skip to main content

Module frames

Module frames 

Source
Expand description

The frame clock’s wake seam: a producer that wakes the redjs pump also calls wake to get a frame.

An idle host stops pumping until something asks: wake from any thread when work was queued for the pump, wake_at from the UI thread when a frame must look again at a known time.

Functions§

set_waker
take_wake_at
The earliest wake_at since the last call, for the host’s idle decision.
wake
Asks for a frame at the next refresh. Callable from any thread; a no-op until a host installed its waker.
wake_at
From the UI thread: a frame must run by at even if nothing else asks for one.