RemoteCpp.py 文件源码

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

项目:RemoteCpp 作者: ruibm 项目源码 文件源码
def run(self, callback):
    with self._lock:
      self._tasks_running += 1
      if self._tasks_running == 1:
        self._progress_animation = ProgressAnimation(self.tasks_running).start()
    def callback_wrapper():
      try:
        callback()
      except Exception as e:
        log_exception(
            'Background task failed with exception: [{exception}]'.format(
                exception=e))
      with self._lock:
        self._tasks_running -= 1
    self.log('tasks running = ' + str(self._tasks_running))
    sublime.set_timeout_async(callback_wrapper, 0)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号