(self)
Used internally to callback on the _closing_deferred if it
        exists.
Used internally to callback on the _closing_deferred if it
        exists.
Used internally to callback on the _closing_deferred if it exists .
def maybe_call_closing_deferred(self):
        """
        Used internally to callback on the _closing_deferred if it
        exists.
        """

        if self._closing_deferred:
            self._closing_deferred.callback(self)
            self._closing_deferred = None
        self._when_closed.fire(self)
def maybe_call_closing_deferred ( self ) : if self . _closing_deferred : self . _closing_deferred . callback ( self ) self . _closing_deferred = None self . _when_closed . fire ( self )