In the end I did this:
``` private void removeFromWaitingQueue(uint jid) { auto arr = waitingQueue[].array; arr = arr.remove!(job => job.jid == jid); waitingQueue.clear(); foreach(job; arr) { waitingQueue.insertBack(job); } } ``` Any hints? /J
In the end I did this:
``` private void removeFromWaitingQueue(uint jid) { auto arr = waitingQueue[].array; arr = arr.remove!(job => job.jid == jid); waitingQueue.clear(); foreach(job; arr) { waitingQueue.insertBack(job); } } ``` Any hints? /J