PausableComposition

Change the code generation of composable functions to enable pausing when a composable function is part of a pausable composition.

Pausable composition is an experimental runtime feature. Experiments with this feature can be run by enabling this feature flag and using a runtime version that supports pausable composition. If the runtime used does not support pausable composition, no change is made to the code generation.

This feature is still considered experimental and is thus disabled by default. To enable, add this line to the composeCompiler {} block:

composeCompiler {
featureFlag = setOf(ComposeFeatureFlag.PausableComposition)
}