Structured Concurrency in Robot Control
Robots need a way to control their various mechanisms to perform tasks, either step-by-step, or in parallel. Most FTC teams do this in a similar way. You might occasionally see some teams playing around with custom task queues and callbacks, but they usually have the same idea at the core: they allow the robot to work on a specific task repeatedly in a non-blocking manner and return so that the caller can run some other logic in parallel while the mechanisms make progress. But our new library, Shuttle, is weird. If we wanted to execute two tasks in parallel, we would write this:
max.xz.ax blog