Skip to main content

FrameWaker

Type Alias FrameWaker 

Source
pub type FrameWaker = Arc<dyn Fn() + Send + Sync>;
Expand description

A thread-safe, cheaply-cloneable “wake up and pump soon” callback. On desktop this is a winit EventLoopProxy send; on mobile (continuous frame loop) it is a no-op. It must be callable from any thread, since the executor fires it and background tasks may drive signal writes.

Aliased Type§

pub struct FrameWaker { /* private fields */ }