

def shutdown(self):
    '\n        Disconnect all cached connections.\n\n        @returns: a deferred that fires once all connection are disconnected.\n        @rtype: L{Deferred}\n        '
    self._shuttingDown = {key: Deferred() for key in self.cachedConnections.keys()}
    return DeferredList(([maybeDeferred(p.transport.loseConnection) for p in self.cachedConnections.values()] + self._shuttingDown.values()))

dataset/ETHPy150Open twisted/vertex/vertex/conncache.py ConnectionCache.shutdown/original