mirror of
https://github.com/sogou/workflow.git
synced 2026-10-21 22:56:42 +08:00
add WFTimerTask::set_callback
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user