def _clearWaiters(self):
        if self._waiters is not None:
            while len(self._waiters):
                _, callbackID = self._waiters.popitem()
                safeCancelCallback(callbackID)

        return
Example #2
0
    def _clearWaiters(self):
        if self._waiters is not None:
            while self._waiters:
                _, callbackID = self._waiters.popitem()
                safeCancelCallback(callbackID)

        return
 def _callbackWrapper(self, requestType, callback, cooldown, *args):
     callbackID = self._waiters.pop(requestType, None)
     if callbackID is not None:
         safeCancelCallback(callbackID)
     self._cooldowns.adjust(requestType, cooldown)
     if callback:
         callback(*args)
     self._doNextRequest(adjustCooldown=cooldown)
Example #4
0
 def _callbackWrapper(self, ctx, callback, cooldown, *args):
     callbackID = self._waiters.pop(ctx.getWaiterID(), None)
     if callbackID is not None:
         safeCancelCallback(callbackID)
     self._cooldowns.adjust(ctx.getRequestType(), cooldown)
     if callback:
         callback(*args)
     self._doNextRequest(adjustCooldown=cooldown)
     return
 def _clearDelayedRequest(self):
     if self._rqCallbackID is not None:
         safeCancelCallback(self._rqCallbackID)
         self._rqCallbackID = None
     if self._rqCtx is not None:
         self._rqCtx.stopProcessing()
         self._rqCtx = None
     if self._rqHandler is not None:
         self._rqHandler = None
 def __cancel_timeout(self):
     if self.__timerID is not None:
         if IS_CLIENT:
             from shared_utils import safeCancelCallback
             safeCancelCallback(self.__timerID)
         else:
             BigWorld.delTimer(self.__timerID)
         self.__timerID = None
     return
 def __cancelWargningCallback(self):
     if self.__warningCallback is not None:
         safeCancelCallback(self.__warningCallback)
         self.__warningCallback = None
     return
 def __cancelTimerCallback(self):
     if self.__timerCallback is not None:
         safeCancelCallback(self.__timerCallback)
         self.__timerCallback = None
     return
Example #9
0
 def __cancelTimerCallback(self):
     if self.__timerCallbackID is not None:
         safeCancelCallback(self.__timerCallbackID)
         self.__timerCallbackID = None
     return
Example #10
0
 def __clearCallback(self):
     if self.__bwListCB is not None:
         safeCancelCallback(self.__bwListCB)
         self.__bwListCB = None
     return
 def __cancelWargningCallback(self):
     if self.__warningCallback is not None:
         safeCancelCallback(self.__warningCallback)
         self.__warningCallback = None
     return
Example #12
0
 def __cancelResyncCallback(self):
     if self.__resyncCbID is not None:
         safeCancelCallback(self.__resyncCbID)
         self.__resyncCbID = None
     return
 def __clearCallback(self):
     if self.__bwListCB is not None:
         safeCancelCallback(self.__bwListCB)
         self.__bwListCB = None
     return
Example #14
0
 def __cancelResyncCallback(self):
     if self.__resyncCbID is not None:
         safeCancelCallback(self.__resyncCbID)
         self.__resyncCbID = None
Example #15
0
 def __cancelTimerCallback(self):
     if self.__timerCallback is not None:
         safeCancelCallback(self.__timerCallback)
         self.__timerCallback = None