def close(self):
self._condition.acquire()<EOL>try:<EOL><INDENT>while self._idle_cache: <EOL><INDENT>con = self._idle_cache.pop(<NUM_LIT:0>)<EOL>try:<EOL><INDENT>con._close()<EOL><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT>self._connections -=<NUM_LIT:1><EOL><DEDENT>self._condition.notifyAll()<EOL><DEDENT>finally:<EOL><INDENT>self._condition.release()<EOL><DEDENT>
Close all connections in the pool.