Slackbot
02/17/2023, 10:11 PMArjan van Wieringen
02/17/2023, 10:17 PMwindow.requestAnimationFrame {
val duration = it.toDuration(DurationUnit.MILLISECONDS)
val result = onFrame(duration.inWholeNanoseconds)
continuation.resume(result)
}
It is unclear to me if toDuration
rounds it to the nearest millisecond.