def release(self, connection: Connection, reuse: bool=True):
        '''Unregister a connection.

        Args:
            connection: Connection instance returned from :meth:`acquire`.
            reuse: If True, the connection is made available for reuse.

        Coroutine.
        '''
        yield from self._condition.acquire()
        self.busy.remove(connection)

        if reuse:
            self.ready.add(connection)

        self._condition.notify()
        self._condition.release()
def release ( self , connection : Connection , reuse : bool = True ) : yield from self . _condition . acquire ( ) self . busy . remove ( connection ) if reuse : self . ready . add ( connection ) self . _condition . notify ( ) self . _condition . release ( )
Unregister a connection.

        Args:
            connection: Connection instance returned from :meth:`acquire`.
            reuse: If True, the connection is made available for reuse.

        Coroutine.