Documentation / dataflow / com.femastudios.dataflow.listen / lifecycle
Go to reference

lifecycle

inline fun <T> lifecycle(f: LifecycleOwner.() -> T): T

Calls the specified function f with a new LifecycleOwner as its receiver and returns its result.

The LifecycleOwner and all the registered listeners are stopped when the function returns.