<div class='type'>Function</div>


<a id='references'></a>


<h2 id="withinfiniteanimationframenanos-onframe-frametimenanos">withInfiniteAnimationFrameNanos</h2>

<div class='sourceset sourceset-common'>Common</div>


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


Like `withFrameNanos`, but applies the `InfiniteAnimationPolicy` from the calling
`CoroutineContext` if there is one.