RobotCore 1.0
WPILib port to raspberry Pi
Loading...
Searching...
No Matches
SchedulerEvent.java
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5package org.wpilib.command3;
6
7import java.util.List;
8import java.util.function.Consumer;
9import org.wpilib.command3.Scheduler.ScheduleResult;
10import org.wpilib.system.RobotController;
11
19public sealed interface SchedulerEvent {
28
35 record Scheduled(Command command, long timestampNanos) implements SchedulerEvent {}
36
43 record Mounted(Command command, long timestampNanos) implements SchedulerEvent {}
44
51 record Yielded(Command command, long timestampNanos) implements SchedulerEvent {}
52
59 record Completed(Command command, long timestampNanos) implements SchedulerEvent {}
60
68 record CompletedWithError(Command command, Throwable error, long timestampNanos)
69 implements SchedulerEvent {}
70
79 record Canceled(Command command, long timestampNanos) implements SchedulerEvent {}
80
89 record Interrupted(Command command, Command interrupter, long timestampNanos)
90 implements SchedulerEvent {}
91
99 record ForkFailure(Command command, List<ScheduleResult.Failure> failures, long timestampNanos)
100 implements SchedulerEvent {}
101}
record Scheduled(Command command, long timestampNanos) implements SchedulerEvent
record Completed(Command command, long timestampNanos) implements SchedulerEvent
record CompletedWithError(Command command, Throwable error, long timestampNanos) implements SchedulerEvent
record Canceled(Command command, long timestampNanos) implements SchedulerEvent
record Yielded(Command command, long timestampNanos) implements SchedulerEvent
record Interrupted(Command command, Command interrupter, long timestampNanos) implements SchedulerEvent
record ForkFailure(Command command, List< ScheduleResult.Failure > failures, long timestampNanos) implements SchedulerEvent
record Mounted(Command command, long timestampNanos) implements SchedulerEvent