Handling Long-Running Synchronous Code with PriorityQueue and Fiber Interruption

Is it possible to have long running synchronous code running inside an effect with PriorityQueue that is interrupted (fiber) fully and the work discarded, when a higher priority is coming a long (to use some external code I am not sure about the time it takes to run, but still be able to have some real time capability).
Was this page helpful?