withInfiniteAnimationFrameNanos

suspend fun <R> withInfiniteAnimationFrameNanos(onFrame: (frameTimeNanos: Long) -> R): R

Runs onFrame on the next animation frame, suspending on the frame clock of the calling coroutine context (in compose-swing-ui that is the per-window Swing frame clock). Behaves like withFrameNanos and is the entry point used by infinite animations.