background:在后台运行事物

时间:2021-04-23 02:31:50
【文件属性】:
文件名称:background:在后台运行事物
文件大小:4KB
文件格式:ZIP
更新时间:2021-04-23 02:31:50
python background-jobs tasks jobs background 背景 它在后台运行内容。 “围绕Python 3的current.futures ThreadPoolExecutor类的基于装饰器的优雅抽象” -西蒙·威利森 这个模块使在CLI或Web应用程序的后台运行程序变得非常简单。 基本用法 import time import background @ background . task def work (): # Do something expensive here. time . sleep ( 10 ) for _ in range ( 100 ): work () 高级用法 import time import background # Use 40 background threads. background . n = 40 @ background . task def work (): t
【文件预览】:
background-master
----README.rst(1KB)
----Pipfile(68B)
----.github()
--------FUNDING.yml(109B)
--------workflows()
----setup.py(3KB)
----background.py(722B)

网友评论