(self)
return self._when_closed.when_fired()
Returns a Deferred that callback()'s (with this Circuit instance)
        when this circuit hits CLOSED or FAILED.
Returns a Deferred that callback()'s (with this Circuit instance)
        when this circuit hits CLOSED or FAILED.
Returns a Deferred that callback () s ( with this Circuit instance ) when this circuit hits CLOSED or FAILED .
def when_closed(self):
        """
        Returns a Deferred that callback()'s (with this Circuit instance)
        when this circuit hits CLOSED or FAILED.
        """
        if self.state in ['CLOSED', 'FAILED']:
            return defer.succeed(self)
        return self._when_closed.when_fired()
def when_closed ( self ) : if self . state in [ 'CLOSED' , 'FAILED' ] : return defer . succeed ( self ) return self . _when_closed . when_fired ( )