Update from Brian.

This commit is contained in:
Georg Brandl 2010-05-21 22:00:25 +00:00
parent 6446834bdf
commit 0f4afffb34
1 changed files with 9 additions and 9 deletions

View File

@ -118,14 +118,14 @@ asynchronously.
``map(func, *iterables, timeout=None)``
Equivalent to ``map(func, *iterables)`` but executed
asynchronously and possibly out-of-order. The returned iterator
raises a `TimeoutError` if `__next__()` is called and the result
isn't available after *timeout* seconds from the original call to
`map()`. If *timeout* is not specified or `None` then there is no
limit to the wait time. If a call raises an exception then that
exception will be raised when its value is retrieved from the
iterator.
Equivalent to ``map(func, *iterables)`` but func is executed
asynchronously and several calls to func may be made concurrently.
The returned iterator raises a `TimeoutError` if `__next__()` is
called and the result isn't available after *timeout* seconds from
the original call to `map()`. If *timeout* is not specified or
`None` then there is no limit to the wait time. If a call raises
an exception then that exception will be raised when its value is
retrieved from the iterator.
``shutdown(wait=True)``
@ -364,7 +364,7 @@ threads, processes or remote procedure call.
Futures are created by concrete implementations of the Executor class
(called ExecutorService in Java). The reference implementation
provides classes that use either a process a thread pool to eagerly
provides classes that use either a process or a thread pool to eagerly
evaluate computations.
Futures have already been seen in Python as part of a popular Python