Coroutine Timings
abstract class CoroutineTimings : AbstractCoroutineContextElement, Runnable
Content copied to clipboard
The spigot timings require a reference to the runnable to display the name of timings correctly. Now, Kotlin Coroutines does not allow to directly pass a runnable object, because a single coroutine may consist out of multiple runnables. This class is a workaround coroutine context element, which can be passed along the minecraftDispatcher to display a valid name for the coroutine.
Constructors
CoroutineTimings
Link copied to clipboard
fun CoroutineTimings()
Content copied to clipboard
Types
Key
Link copied to clipboard
Key identifier of the context element.
Functions
get
Link copied to clipboard
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
Content copied to clipboard
minus Key
Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
Content copied to clipboard
plus
Link copied to clipboard