keepAliveTime

abstract val keepAliveTime: Duration

Duration to remain state as an active.

The temporary measure to keep the state active once it's no longer referenced anywhere.

Note: On the Android platform, there is a possibility of temporarily unsubscribing due to configuration changes such as screen rotation. Set a duration of at least a few seconds to ensure that the Job processing within the Coroutine Flow is not canceled. This value has the same meaning as SharingStarted.WhileSubscribed(5_000) defined in ViewModel in Now in Android App.