阅读背景:

使用`concurrent.futures.ThreadPoolExecutor`提出的超时太晚了

来源:互联网 

When running this code

运行此代码时

def f(t):
    time.sleep(t)
    return t

with ThreadPoolExecutor(max_workers=300) as pool:
    res = list(pool.map(f, [2, 10], timeout=1))
def f(t):
   



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: