Move @_scan_running decorator out of class and tidy as suggested in review
This commit is contained in:
parent
e030eb576b
commit
31c768c12a
2 changed files with 58 additions and 44 deletions
|
|
@ -27,7 +27,11 @@ class ErrorCapturingThread(Thread):
|
|||
args = ()
|
||||
if kwargs is None:
|
||||
kwargs = {}
|
||||
# Make an empty list for the error.
|
||||
|
||||
# Make an empty list for any error.
|
||||
# We are only ever going to have one or zero errors, this is an empty
|
||||
# list as we need to pass the reference not the value to collect the
|
||||
# error. If we could simply make a pointer we would have done that.
|
||||
self._error_buffer = []
|
||||
|
||||
# Add the target function end error buffer to the thread to the start of
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue