mcSyncLaunch

fun CoroutineScope.mcSyncLaunch(block: suspend CoroutineScope.() -> Unit): Job(source)

Does the same as launch, but the dispatcher defaults to mcCoroutineDispatcher.

This way, you can execute code synchronously (to the MinecraftServer main thread) very easily.

coroutineScope {
mcSyncLaunch {
// suspending and sync now
}
}