sequence
fun Plugin.sequence(context: CoroutineContext = EmptyCoroutineContext, block: suspend TaskSequenceBuilder.() -> Unit)
Starts a task sequence.
Parameters
context
Additional coroutine context.
block
The sequence block.
fun Scheduler.sequence(context: CoroutineContext = EmptyCoroutineContext, block: suspend TaskSequenceBuilder.() -> Unit)
Starts a task sequence using this Scheduler.
Parameters
context
Additional coroutine context.
block
The sequence block.
fun Player.sequence(plugin: Plugin, context: CoroutineContext = EmptyCoroutineContext, block: suspend TaskSequenceBuilder.() -> Unit)
Extension for Player to start a task sequence. The sequence will be tracked for this player.
Parameters
plugin
The plugin associated with this sequence.
context
Additional coroutine context.
block
The sequence block.