diff --git a/src/factory/WFTask.h b/src/factory/WFTask.h index 06f3c280..f4b17956 100644 --- a/src/factory/WFTask.h +++ b/src/factory/WFTask.h @@ -346,6 +346,12 @@ public: int get_state() const { return this->state; } int get_error() const { return this->error; } +public: + void set_callback(std::function cb) + { + this->callback = std::move(cb); + } + protected: virtual SubTask *done() {