CoroutineCommandIteratorScope

Functional scope of a coroutine command

Gives methods such as yield, waitUntil, wait, and await, while allowing other internal iterator functions to remain hidden.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
suspend fun await(command: Command)

Await another command.

Link copied to clipboard
suspend fun wait(time: Time)

Wait a set amount of time.

Link copied to clipboard
suspend fun waitUntil(condition: BooleanSupplier)

Wait until the given condition is true.

Link copied to clipboard
suspend fun waitWhile(condition: BooleanSupplier)

Wait while the given condition is true.

Link copied to clipboard
abstract suspend fun yield()

Yield execution back to the command scheduler.