- 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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user