asLiveData

fun <T> MimiObservable<T>.asLiveData(coroutineScope: CoroutineScope): LiveData<T>

AsLiveData - a convenience extension for MimiObservable.observe

Return

a LiveData representation of the MimiObservable.state

Parameters

coroutineScope
  • The coroutineScope the MimiObservable.observe will be executed on. It will be executed as long as coroutineScope runs.