dispatcher

fun Entity.dispatcher(plugin: SuspendingPlugin = getCallingSuspendingPlugin()): CoroutineContext

Retrieves the coroutine dispatcher for this entity.

Receiver

The entity.

Return

The entity's coroutine dispatcher.

Parameters

plugin

The suspending plugin instance. Defaults to the calling suspending plugin.


fun Location.dispatcher(plugin: SuspendingPlugin = getCallingSuspendingPlugin()): CoroutineContext

Retrieves the coroutine dispatcher for this location.

Receiver

The location.

Return

The region's coroutine dispatcher.

Parameters

plugin

The suspending plugin instance. Defaults to the calling suspending plugin.