pub fn present(
window: &Window,
size: (u32, u32),
observer: Option<Box<dyn FnOnce(Feedback) + Send>>,
present: impl FnOnce(),
) -> boolExpand description
Present a frame of size pixels that present commits, at the size it was drawn for, and
report its presentation to observer when one is given. Returns whether it is observed.
The window’s next redraw waits for this frame’s callback: frames are paced by the display,
whichever thread commits them.