wrapSuspend

fun wrapSuspend(allowParallel: Boolean = false, handler: KAsyncCommand.Handler<ClientCommandSource>): Command<ClientCommandSource>

Wraps a suspend handler into a Brigadier Command, keeping the scheduling, re-entrance guard and progress-message behavior of the previous meta-model suspendHandler.

Parameters

allowParallel

allow or prevent duplicated executions