mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 06:50:08 +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
|
@ListenersBuilderDsl
|
||||||
@PublishedApi
|
@PublishedApi
|
||||||
internal suspend fun <E : Subscribable> KClass<E>.subscribeAll(listeners: suspend ListenerBuilder<E>.() -> Unit) {
|
internal suspend fun <E : Subscribable> KClass<E>.subscribeAll(listeners: suspend ListenerBuilder<E>.() -> Unit) {
|
||||||
with(ListenerBuilder<E> { this.subscribeInternal(it) }) {
|
listeners(ListenerBuilder { this.subscribeInternal(it) })
|
||||||
listeners()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user