(self)
Close the pool to new visitors.
Close the pool to new visitors.
Close the pool to new visitors .
def close(self) -> None:
        """Close the pool to new visitors."""
        self.running = False
        for qid in self.processes.values():
            tx, _ = self.queues[qid]
            tx.put_nowait(None)
def close ( self ) -> None : self . running = False for qid in self . processes . values ( ) : tx , _ = self . queues [ qid ] tx . put_nowait ( None )