Backgrounder

时间:2024-06-20 18:15:15
【文件属性】:

文件名称:Backgrounder

文件大小:19KB

文件格式:ZIP

更新时间:2024-06-20 18:15:15

Python

#Backgrounder 自述文件 假设您有这样的事情: x = self.slow_data_getting_function(1,test1) #Lets say this takes a second while x: self.slow_processing_function(x) #Lets say this takes a second too x = self.slow_data_getting_function(1,test1) 您可以使用 backgroudner 像这样运行它,并将时间减少近一半: bg=Backgrounder(self.slow_data_getting_function,fn_args=[1,test2]) #Starts backgrounder while bg.status(): x = bg.get_o


【文件预览】:
Backgrounder-master
----.gitattributes(378B)
----.travis.yml(259B)
----setup.py(287B)
----README.md(9KB)
----Backgrounder()
--------Backgrounder.py(13KB)
--------__init__.py(30B)
--------__pycache__()
----TODO(392B)
----tests()
--------__pycache__()
--------Backgrounder_unittests.py(10KB)
----.gitignore(3KB)

网友评论