Are callbacks of the same Node called sequentally in MultiThreadExecutor?
Let's suppose I have nodes A, B and C on a MultiThreadExecutor with two threads.
Then suppose that the Event Queue has the following events: Node A Callback1 | Node A Callback1 | Node B Callback 2
From what I understand:
- The first thread takes the Node A Callback1.
- Then the second thread takes the next Node A Callback1.
This will mean that callbacks on the same Node should be thread safe when using MultiThreadExecutor, is that true? Is there a way to guarantee that the callbacks of the same node are executed sequentially or that each node has its own thread?
Thank you