Commit 77dce11e authored by Him188's avatar Him188

Enhance performance

parent 1dc0255b
...@@ -127,8 +127,8 @@ class MessageSubscribersBuilder<T : MessagePacket<*, *>>( ...@@ -127,8 +127,8 @@ class MessageSubscribersBuilder<T : MessagePacket<*, *>>(
* 无任何触发条件. * 无任何触发条件.
*/ */
@MessageDsl @MessageDsl
inline fun always(crossinline onEvent: @MessageDsl suspend T.(String) -> Unit): Listener<T> { fun always(onEvent: @MessageDsl suspend T.(String) -> Unit): Listener<T> {
return content({ true }, onEvent) return subscriber(onEvent)
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment