in printing/src/main/java/com/zachklipp/richtext/ui/printing/ComposePdfRenderer.kt [188:197]
override fun onDraw() {
if (handled) return
handled = true
// Wait for the next frame.
post {
viewTreeObserver.removeOnDrawListener(this)
continuation.resume(Unit)
}
}