We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 379bf9a commit d524fd8Copy full SHA for d524fd8
src/labthings/actions/thread.py
@@ -138,9 +138,14 @@ def dead(self):
138
139
@property
140
def stopped(self):
141
- """ """
+ """Has the thread been cancelled"""
142
return self.stopping.is_set()
143
144
+ @property
145
+ def cancelled(self):
146
+ """Alias of `stopped`"""
147
+ return self.stopped
148
+
149
def update_progress(self, progress: int):
150
"""
151
Update the progress of the ActionThread.
0 commit comments