Skip to main content

with_frame_nanos

Function with_frame_nanos 

Source
pub fn with_frame_nanos<R>(
    on_frame: impl FnOnce(u64) -> R,
) -> impl Future<Output = R>
Expand description

Resolves on the next frame with that frame’s time, in nanoseconds. Compose’s withFrameNanos, the clock animations run on.