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:
@ -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;
|
||||
|
Reference in New Issue
Block a user