Make the ABANDONED
message type available to use in BaseTask
#437
Labels
type: refactor
Cleanup or refactoring tasks that don't add functionality or fix bugs
Milestone
#392 refactored what's now the
BaseTask
to add a newABANDONED
message type, used for cancellation. That fixed a situation where we were inventing a bogus return value ofNone
when the task wasn't even being executed.But individual tasks are still inventing a bogus return value of
None
in response to cancellation. We could fix up theBaseTask
to make it easier to check for cancellation and send theABANDONED
message if cancellation occurred.Examples of the bogus return value:
traits-futures/traits_futures/background_iteration.py
Line 40 in abeb975
traits-futures/traits_futures/background_progress.py
Line 98 in abeb975
The text was updated successfully, but these errors were encountered: