sogou/workflow

Everything is non-blocking, please make sure your main process doesn’t terminate unexpectedly.

Barenboim opened this issue · 0 comments

Wrong:

int main(void)
{
    ...
    task->start();
    return 0;
}

Right:

int main(void)
{
    ...
    task->start();
    pause(); // or better: wait_group.wait();
    return 0;
}