toRegistrationDescription
fun EventListener.toRegistrationDescription(block: EventListenerRegistrationDescription.() -> Unit): EventListenerRegistrationDescription(source)
通过 EventListener 构建一个 EventListenerRegistrationDescription.
listener.toRegistrationDescription {
priority = PriorityConstant.FIRST
isAsync = true
}
Content copied to clipboard
fun EventListener.toRegistrationDescription(priority: Int = DEFAULT_PRIORITY, isAsync: Boolean = DEFAULT_ASYNC): EventListenerRegistrationDescription(source)
通过 EventListener 构建一个 EventListenerRegistrationDescription.
listener.toRegistrationDescription(priority = priority, isAsync = isAsync)
Content copied to clipboard