launch
fun Plugin.launch(context: CoroutineContext = EmptyCoroutineContext, block: suspend CoroutineScope.() -> Unit): Job
Launches a new coroutine within this plugin's scope on the Bukkit main thread.
This is a convenience extension that uses the plugin's scope to launch coroutines. The coroutine runs with the provided context merged with the plugin's dispatcher.
Return
A Job instance representing the launched coroutine.
Parameters
context
Additional coroutine context elements (default: EmptyCoroutineContext).
block
The suspending lambda to execute within the coroutine.