ContextClock

When a recomposition is needed, use a MonotonicFrameClock pulled from the calling CoroutineContext to determine when to run. If no clock is found in the context, an exception is thrown.

Use this option to drive Molecule with a built-in frame clock or a custom one.

After the initial, synchronous recomposition, future recompositions will run on a thread managed by the external clock.

Properties

Link copied to clipboard
Link copied to clipboard