Skip to content

Commit 6a41954

Browse files
committed
Add a warning to schedule docs
See wpilibsuite/allwpilib#7073
1 parent 125788e commit 6a41954

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

commands2/commandscheduler.py

+2
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ def schedule(self, *commands: Command) -> None:
177177
using those requirements have been scheduled as interruptible. If this is the case, they will
178178
be interrupted and the command will be scheduled.
179179
180+
WARNING: using this function directly is often a footgun and should be avoided. Instead Triggers should be used to schedule Commands.
181+
180182
:param commands: the commands to schedule.
181183
"""
182184
for command in commands:

0 commit comments

Comments
 (0)