All Deferred_queue iteration functions first copy the queue (to a list) and then start calling the user function f. So, if f modifies the queue, that will have no effect on the iteration.
Deferred_queue
f
default how is `Sequential
how
`Sequential