Skip to content

Commit 196fde6

Browse files
authored
Add a warning to schedule docs (#70)
1 parent e3c8a9e commit 196fde6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: commands2/commandscheduler.py

+3
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ 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 can often lead to unexpected behavior and should be
181+
avoided. Instead Triggers should be used to schedule Commands.
182+
180183
:param commands: the commands to schedule.
181184
"""
182185
for command in commands:

0 commit comments

Comments
 (0)