def doAction(self, action=None): if not self.isInQueue(): self.queue(self._makeQueueCtxByAction(action)) else: self.dequeue(DequeueCtx(waitingID='prebattle/leave')) return True
def _doEffect(self, dispatcher): self.__stillRunning = True self.__result = yield dispatcher.sendPrbRequest(DequeueCtx()) self.__stillRunning = False