newpool 0.3.14
“更简单的使用异步协程和线程池 / 进程池”
Python package contains an entry_points.txt filePackage declares a console-script entry point
SHA-25694e05cc6ddaf1a6153cbae8994fb4e8079bb97171691e6c0941d7278456be417
MaleculeH₂(DbPo₂)Md(Pa)
Evidence
45:4… max_workers = n or min(32, (os.cpu_count() or 1) + 4)
46 with concurrent.futures.ThreadPoolExecutor(max_workers=max_workers) as executor:
47 return _map_with_executor(
48 executor, func, *iterables, timeout=timeou …
91:5… 运行协程函数
92
93 - coro: 协程对象
94 """
95 return asyncio.run(coro)
96
97
⋯8 lines
162:32… ��在���要进程池时指定:
163
164 ```
165 pool = newpool.Pool()
166 process_pool = newpool.Pool(mode="process")
167 ```
168 """
169 self.mode = mode.lower()
170 if self. …
0Metadata-Version: 2.1
Name: newpool
Version: 0.3.14
Summary: 更简单的使用异步协程和线程池 / 进程池
Author: jiaosenvip
Author-Email: jiaosenvip <[email protected]>
License: MIT
Project-URL: Home
278ion, https://github.com/jiaosenvip/newpool/wiki
Requires-Python: >=3.11
Requires-Dist: rich
Requires-Dist: loky>=3.5.6
Description-Content-Type: text/markdown
# newpool
一个简化异步协程、线程池和进程池使�
No evidence locations were recorded for this file. Raw result