I am trying to use the scheduler, but I would like to know if it is possible to have events with different priorities... As an example:
Task A - Priority LOW Task B - Priority LOW Task C - Priority HIGH Task D - Priority LOW
Having a scheduler queue like: Queue position 1st: Task A (executing this task) Queue position 2nd: Task B (in the queue) Queue position 3rd: Task C (in the queue) Queue position 4th: Task D (in the queue)
The behaviour I need is once Task A is complete, it should execute Task C (higher priority), then Task B and finally Task D (assuming no more events appear in the queue).
Is this behaviour possible? I haven't found any example where something like this is implemented...
Thanks in advance.
Diogo