summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-06-19 13:40:49 +0100
committerLars Wirzenius <liw@liw.fi>2012-06-19 13:40:49 +0100
commit5b278adc7fded038b5e28850736c2911a8c7da2d (patch)
tree13a05004c4fd9a1bbbbbf69bbe6a9be4c83183fe
parentd346d40a117059f1a6ff4b2cce8e0f23e9e5152d (diff)
downloadbgproc-5b278adc7fded038b5e28850736c2911a8c7da2d.tar.gz
Use default number of workers
-rw-r--r--example.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/example.py b/example.py
index ecdef1d..bbecafc 100644
--- a/example.py
+++ b/example.py
@@ -26,7 +26,7 @@ def func(request):
return request
-bg = bgproc.BackgroundProcessing(func, numprocs=2)
+bg = bgproc.BackgroundProcessing(func)
numbers = range(N)
results = []
for i in numbers: