mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Make example code error.
This commit is contained in:
@@ -110,7 +110,7 @@ int main()
|
||||
~~~cpp
|
||||
int main()
|
||||
{
|
||||
WFGoTask *task = WFTaskFactory::create_timedgo_task(1, 0, "test", [task]() {
|
||||
WFGoTask *task = WFTaskFactory::create_timedgo_task(1, 0, "test", [&task]() {
|
||||
task->user_data = (void *)123;
|
||||
});
|
||||
task->set_callback([](WFGoTask *task) {
|
||||
|
||||
Reference in New Issue
Block a user