runBlocking

abstract fun runBlocking()

Start the animation and refresh it until all its tasks are finished.

This calls Thread.sleep between each frame, so it should usually be run in a separate thread so that you can update the state concurrently.

If the JVM shuts down while the animation is running, it is stopped. If shutdown has already begun, this returns without drawing anything.

See also