- Use a singleton pool to prevent lengthy restarts of the pool, this also means that arguments for pool size have gone.

- Removed qbar and TqdmMeter.
- Wrap chunked function for better error messages.
This commit is contained in:
Wim Pomp
2023-09-08 17:19:35 +02:00
parent 92f162b7d5
commit f3302f6dba
6 changed files with 246 additions and 246 deletions

View File

@@ -1,5 +1,5 @@
import pytest
from parfor import Chunks, parfor, Parpool, pmap
from parfor import Chunks, ParPool, parfor, pmap
class SequenceIterator:
@@ -48,7 +48,7 @@ def test_parpool():
def fun(i, j, k):
return i * j * k
with Parpool(fun, (3,), {'k': 2}) as pool:
with ParPool(fun, (3,), {'k': 2}) as pool:
for i in range(10):
pool[i] = i