stateFlow

abstract val stateFlow: StateFlow<CleanerState>

Used to monitor the condition of the cleaners in pull.

Example:

// Get the launcher through the cleaner manager
val launcher = CleanerManagerFactory.cleanerManager.launcher

// Subscribe to the states of the launcher
launcher.stateFlow.collect { cleanerState -> // cleanerState: CleanerState
// Do something...
}

See also