From 0f4afffb3406d7a01032fad10bcb1936443758ff Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 21 May 2010 22:00:25 +0000 Subject: [PATCH] Update from Brian. --- pep-3148.txt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pep-3148.txt b/pep-3148.txt index 42908abbe..c301a64be 100644 --- a/pep-3148.txt +++ b/pep-3148.txt @@ -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