如何使用协程Flow定义链式调用DSL由于Flow属于实验性质的,暂时用Rx代替,这需要使用coroutines的Rx扩展包
定义DSL定义启动flow的函数: protected val _spinner: MutableLiveData<Boolean> by lazy { MutableLiveData<Boolean>() } val spinner: LiveData<Boolean> get() = _spinner ...