TypedJAsyncEventListener

一个事件 Event 的异步监听器。也可以称之为事件处理器。

是针对JVM平台的兼容类型,可以通过 toListener 转化为 EventListener 类型。

会通过指定的类型处理事件。如果类型不匹配则会返回 EventResult.invalid

Author

ForteScarlet

See also

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
@NonBlocking
abstract fun handle(context: EventListenerContext, event: E): CompletionStage<out EventResult>

通过 context 异步处理事件并得到异步响应。