'The implmentation of C{shrink}, performed by the coordinator worker.
@param n: see L{Team.shrink}'

def _quitIdlers(self, n=None):

    if (n is None):
        n = (len(self._idle) + self._busyCount)
    for x in range(n):
        if self._idle:
            self._idle.pop().quit()
        else:
            self._toShrink += 1
    if (self._shouldQuitCoordinator and (self._busyCount == 0)):
        self._coordinator.quit()
