Skip to content

Commit d524fd8

Browse files
author
Joel Collins
committed
Added alias of "stopped"
1 parent 379bf9a commit d524fd8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/labthings/actions/thread.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,14 @@ def dead(self):
138138

139139
@property
140140
def stopped(self):
141-
""" """
141+
"""Has the thread been cancelled"""
142142
return self.stopping.is_set()
143143

144+
@property
145+
def cancelled(self):
146+
"""Alias of `stopped`"""
147+
return self.stopped
148+
144149
def update_progress(self, progress: int):
145150
"""
146151
Update the progress of the ActionThread.

0 commit comments

Comments
 (0)