mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 17:20:11 +08:00
Simplify
This commit is contained in:
parent
7572712ba1
commit
d5e6c2f890
@ -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) })
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user