This commit is contained in:
Him188 2019-11-27 23:36:33 +08:00
parent 7572712ba1
commit d5e6c2f890

View File

@ -106,9 +106,7 @@ internal suspend fun <E : Subscribable> KClass<E>.subscribeWhileNull(listener: s
@ListenersBuilderDsl
@PublishedApi
internal suspend fun <E : Subscribable> KClass<E>.subscribeAll(listeners: suspend ListenerBuilder<E>.() -> Unit) {
with(ListenerBuilder<E> { this.subscribeInternal(it) }) {
listeners()
}
listeners(ListenerBuilder { this.subscribeInternal(it) })
}
/**