Function

getValue

Permits property delegation of vals using by for [DoubleState].

DelegatedReadOnlyStateSample

@Composable
fun DelegatedReadOnlyStateSample() {
    // Composable function that manages a subscription to a data source, returning it as State
    @Composable fun observeSampleData(): State<String> = TODO()
    // Subscription is managed here, but currentValue is not read yet
    val currentValue by observeSampleData()
    Row {
        // This scope will recompose when currentValue changes
        Text("Data: $currentValue")
    }
}