add WFTimerTask::set_callback

This commit is contained in:
XieHan
2021-02-23 17:33:20 +08:00
parent ca50b9d7f3
commit b7cf191e2a
+6
View File
@@ -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<void (WFTimerTask *)> cb)
{
this->callback = std::move(cb);
}
protected:
virtual SubTask *done()
{