1
Livid MOD PRO |
3
ericls 2016 年 10 月 18 日 via iPhone
asyncio
|
4
clino 2016 年 10 月 18 日
也可以用协程吧,如果非 cpu 密集型的话
|
5
9hills 2016 年 10 月 18 日
multiprocess 就行
|
9
Nostalgia 2016 年 10 月 18 日
推荐 concurrent.futures ,支持多进程 /多线程,且封装的接口一致;抽象的程度比 threading, multiprocessing 更高些。
|
10
ericls 2016 年 10 月 18 日 via iPhone
asyncio 有 back port 吧
另外楼上说的 promise 写起来也挺舒服的 要注意 process pool executor 必须要 picklable |
11
shyling 2016 年 10 月 18 日
concurrent.futures , MultiThreadPool
|
12
reyno 2016 年 10 月 18 日 via iPhone
直接上 gevent
|