KScheduler

object KScheduler

KScheduler runs all commands. Every loop the scheduler checks for newly scheduled commands, cancelled commands, finished commands, and handles them accordingly. Processing is done behind the scenes, so the main purpose of this class for the user is to schedule commands, mainly using KScheduler.schedule

Functions

Link copied to clipboard
fun cancel(vararg cmds: Cmd)

Cancel commands, removing them from the scheduler and ending them

Link copied to clipboard
fun registerSubsystem(vararg requestedSubsystems: KSubsystem)

Register n subsystems

Link copied to clipboard
fun schedule(vararg cmds: Cmd)

Schedule commands

Link copied to clipboard
fun unregisterSubsystem(vararg requestedSubsystems: KSubsystem)

Unregister subsystems