Too fast worker loop
If the next
retrieved from the queue.pull
call is small, the current computation set it as the timeout forever because min(next_ or options.timeout, timeout, options.timeout)
.
The problem is to reuse the previous timeout to compute the new one.
Such small timeout for the select makes the loop iterate quickly and consume resources for nothing.