def _recycleWorker(self, worker):
        self._idle.add(worker)
        if self._pending:
            # Re-try the first enqueued thing.
            # (Explicitly do _not_ honor _quit.)
            self._coordinateThisTask(self._pending.popleft())
        elif self._shouldQuitCoordinator:
            self._quitIdlers()
        elif self._toShrink > 0:
            self._toShrink -= 1
            self._idle.remove(worker)
            worker.quit()
Creates skew heap with one element (or empty one)
dataset/ETHPy150Open twisted/twisted/twisted/_threads/_team.py/Team._recycleWorker--crossover with--dataset/ETHPy150Open kachayev/fn.py/fn/immutable/heap.py/SkewHeap.__init__