Skip to content
Commit 91a83622 authored by Dāvis Mosāns's avatar Dāvis Mosāns Committed by Méven Car
Browse files

Job: implement onFinish()

It's useful to do some processing after job have finished.

Currently you can use custom `Executor` to accomplish this but that's not as simple and easy as:
```cpp
auto job = ThreadWeaver::make_job([]() {
    // Job Lambda
});

job->onFinish([](const ThreadWeaver::JobInterface &job) {
    // Finish handler Lambda
});

ThreadWeaver::enqueue(job);
```

This is most useful for `Collection`/`Sequence` because for those you want handler once all jobs have finished not after each of them.
parent c128063e
Pipeline #368863 passed with stage
in 2 minutes and 31 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment