mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix doc example bug reported on python-list by Akshay Verma.
This commit is contained in:
parent
b8352e7253
commit
9f5388f24f
1 changed files with 1 additions and 1 deletions
|
@ -398,7 +398,7 @@ For example::
|
|||
print(res.get(timeout=1)) # prints "100"
|
||||
|
||||
# make worker sleep for 10 secs
|
||||
res = pool.apply_async(sleep, 10)
|
||||
res = pool.apply_async(sleep, [10])
|
||||
print(res.get(timeout=1)) # raises multiprocessing.TimeoutError
|
||||
|
||||
# exiting the 'with'-block has stopped the pool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue