Depends on D5068
In response to this issue, we should implement the code that will delegate the work away from the reactors to separate threads.
Here, I implement using the worker in the bidi reactors.
Differential D5069
[services] Rust Integration - c++ - Implement worker in bidi reactor Authored by • karol on Sep 6 2022, 2:21 PM.
Details Depends on D5068 In response to this issue, we should implement the code that will delegate the work away from the reactors to separate threads. Here, I implement using the worker in the bidi reactors. Services build as usual.
Diff Detail
Event Timeline
Comment Actions I understand your concerns. The point here is that I wanted to have a possibility to schedule a task and if this task doesn't fail, then schedule a callback that is called only afterward. If you take a look at the implementations, these tasks/callbacks differ so I think that introducing a separate layer of abstraction makes sense. Also, in this case, we can easily replace the logic for the thread pooling because it is transparent from places where Worker::schedule is being invoked.
| |||||||||||||||||||||||||