producer.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:afkak 作者: ciena 项目源码 文件源码
def stop(self):
        """
        Cleanup our LoopingCall and any outstanding deferreds...
        """
        self.stopping = True
        # Cancel any outstanding request to our client
        if self._batch_send_d:
            self._batch_send_d.cancel()
        # Do we have to worry about our looping call?
        if self.batch_every_t is not None:
            # Stop our looping call, and wait for the deferred to be called
            if self.sendLooper is not None:
                self.sendLooper.stop()
        # Make sure requests that wasn't cancelled above are now
        self._cancel_outstanding()

    # # Private Methods # #
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号