Skip to content

Commit ecfdfa5

Browse files
authored
Add Subsystem.idle() (#85)
1 parent 196fde6 commit ecfdfa5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: commands2/subsystem.py

+10
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,16 @@ def startRun(self, start: Callable[[], None], run: Callable[[], None]) -> Comman
168168

169169
return startRun(start, run, self)
170170

171+
def idle(self) -> Command:
172+
"""
173+
Constructs a command that does nothing until interrupted. Requires this subsystem.
174+
175+
:returns: the command
176+
"""
177+
from .cmd import idle
178+
179+
return idle(self)
180+
171181
#
172182
# From SubsystemBase
173183
#

0 commit comments

Comments
 (0)