ActionRunner

object ActionRunner : OpModeManagerNotifier.Notifications

Singleton object responsible for managing and updating a queue of concurrent asynchronous tasks (actions). Provides methods to enqueue actions and process the queue during the robot's main loop.

Implements OpModeManagerNotifier.Notifications to manage the actions' lifecycle across different OpMode stages.

Properties

Link copied to clipboard
@get:JvmName(name = "actions")
val actions: List<Action>

The actions currently being run.

Functions

Link copied to clipboard
open override fun onOpModePostStop(p0: OpMode?)
Link copied to clipboard
open override fun onOpModePreInit(p0: OpMode?)
Link copied to clipboard
open override fun onOpModePreStart(p0: OpMode?)
Link copied to clipboard
@OnCreateEventLoop
fun register(context: Context, eventLoop: FtcEventLoop)
Link copied to clipboard
fun run(action: Action)

Adds action to the run queue.

fun run(vararg actions: Action)

Adds all actions in actions to the run queue.

Link copied to clipboard

Run a to completion in a blocking loop.

Link copied to clipboard

Updates the run queue. MUST be called at the end of every loop.