InterruptionBehavior
- class commands2.InterruptionBehavior(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
Enum
An enum describing the command’s behavior when another command with a shared requirement is scheduled.
- kCancelIncoming = 0
This command ends,
commands2.Command.end()
is called, and the incoming command is scheduled normally.This is the default behavior.
- kCancelSelf = 1
This command continues, and the incoming command is not scheduled.