life.md 357 B

net / com.drake.net.time / Interval / life

life

fun life(lifecycleOwner: LifecycleOwner, lifeEvent: Event = Lifecycle.Event.ON_STOP):Interval

绑定生命周期, 在指定生命周期发生时取消轮循器

Parameters

lifecycleOwner - 默认在销毁时取消轮循器