feat(Tasks): add ConcurrentTask::clear to allow re-using tasks

This way old runs won't pile up in the internal DSs

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow
2022-12-15 13:45:50 -03:00
parent 4f1ea712da
commit dd578354c4
2 changed files with 21 additions and 0 deletions

View File

@ -24,6 +24,11 @@ public:
public slots:
bool abort() override;
/** Resets the internal state of the task.
* This allows the same task to be re-used.
*/
void clear();
protected
slots:
void executeTask() override;