suspend Handler
inline fun <T : Event> EventListener.suspendHandler(context: CoroutineContext = EmptyCoroutineContext, priority: Short = 0, behavior: SuspendHandlerBehavior = SuspendHandlerBehavior.Parallel.Default, noinline handler: SuspendableEventHandler<T>): EventHook<T>
Start a Job on event.
It's fully async, so modifying the Event instance makes no sense.
Parameters
context
the coroutine context to use for the job, defaults to EmptyCoroutineContext.
priority
the priority of the event hook, defaults to 0.
behavior
the behavior of the event handler, defaults to SuspendHandlerBehavior.Parallel.