#NEWLINE# def _recycleWorker( self , worker ) : #NEWLINE# #INDENT# '\n        Called only from coordinator.\n\n        Recycle the given worker into the idle pool.\n\n        @param worker: a worker created by C{createWorker} and now idle.\n        @type worker: L{IWorker}\n        ' #NEWLINE# self . _idle . add ( worker ) #NEWLINE# if self . _pending : #NEWLINE# #INDENT# self . _coordinateThisTask ( self . _pending . popleft ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if self . _shouldQuitCoordinator : #NEWLINE# #INDENT# self . _quitIdlers ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . _toShrink > 0 ) : #NEWLINE# #INDENT# self . _toShrink -= 1 #NEWLINE# self . _idle . remove ( worker ) #NEWLINE# worker . quit ( )