JAsyncEventProcessor

一个异步式的 EventProcessor,是提供给 Java 的友好类型。 可直接使用 EventProcessors.async((event, raw) -> { ... }) 构建。

block 最终会在 Dispatchers.IO 的调度器下使用 runInterruptible 执行。

Functions

Link copied to clipboard
@NonBlocking
abstract fun async(event: Event<*>, raw: String): CompletionStage<Void?>

处理事件。

Link copied to clipboard
open suspend operator override fun Event<*>.invoke(raw: String)