Package cloud.commandframework.kotlin.coroutines.extension

Extension functions for existing Cloud types

Functions

suspendingHandler
Link copied to clipboard
fun <C : Any> Command.Builder<C>.suspendingHandler(scope: CoroutineScope = GlobalScope, context: CoroutineContext = EmptyCoroutineContext, handler: SuspendingExecutionHandler<C>): Command.Builder<C>
fun <C : Any> MutableCommandBuilder<C>.suspendingHandler(scope: CoroutineScope = GlobalScope, context: CoroutineContext = EmptyCoroutineContext, handler: SuspendingExecutionHandler<C>): MutableCommandBuilder<C>

Specify a suspending command execution handler.