observe

inline suspend fun <T> MimiObservable<T>.observe(tag: String? = null, crossinline action: suspend (value: T) -> Unit)

Observe - a convenience extension for MimiObservable.observe

Parameters

tag
  • an optional logging tag to help identify updates emitted to this MimiObserver.

action
  • the action to be performed with the value.