Package-level declarations

Types

Link copied to clipboard
object AsyncCoroutineDispatcher : CoroutineDispatcher
Link copied to clipboard
Link copied to clipboard
class FileConfig(fileName: String) : YamlConfiguration

Represents a configuration file for storing settings in YAML format.

Link copied to clipboard
object MinecraftCoroutineDispatcher : CoroutineDispatcher
Link copied to clipboard

Properties

Link copied to clipboard
val Dispatchers.async: CoroutineContext
Link copied to clipboard
Link copied to clipboard
val Dispatchers.mc: CoroutineContext

Functions

Link copied to clipboard
suspend fun <T> mcasync(coroutine: suspend () -> T): T

mcasync guarantees execution away from the server thread. True blocking is OK, mcasync uses an Unbound thread-pool, so it's not an option for CPU bound tasks.

Link copied to clipboard
fun <T> mcasyncBlocking(coroutine: suspend () -> T)
Link copied to clipboard
fun <T> mcroutine(coroutine: suspend () -> T)

mcroutine guarantees execution on the server thread. True blocking is illegal, see mcasync for options.