truncatedata.py 文件源码

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

项目:navigator 作者: naviga-tor 项目源码 文件源码
def _main():
    """ Start multiple processes to truncate data out of measurements. """
    wlock = Manager().Lock()
    pool = PoolLimit()
    probes = cprobes()
    try:
        while True:
            try:
                cprobe = probes.next()
            except StopIteration:
                break
            pool.apply_async(_truncate, (cprobe, wlock))
        pool.close()
        pool.join()
    except KeyboardInterrupt:
        pass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号