diff --git a/README.md b/README.md index 6b516af..7ff3636 100644 --- a/README.md +++ b/README.md @@ -2150,7 +2150,7 @@ with : # Enters the block by calling acq = .cancel() # Cancels or returns False if running/finished. = as_completed() # Next() waits for next completed Future. ``` -* **Map() and as\_completed() also accept 'timeout' argument. It causes TimeoutError when next() is called if result isn't available in 'timeout' seconds from the original call.** +* **Map() and as\_completed() also accept 'timeout'. It causes futures.TimeoutError when next() is called. Map() times from original call and as_completed() from first call to next().** * **Exceptions that happen inside threads are raised when next() is called on map's iterator or when result() is called on a Future. Its exception() method returns exception or None.** * **ProcessPoolExecutor provides true parallelism, but everything sent to/from workers must be [pickable](#pickle). Queues must be sent using executor's 'initargs' and 'initializer' parameters.** diff --git a/index.html b/index.html index 285d183..918cac5 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -1774,7 +1774,7 @@ CompletedProcess(args=['bc', # Next() waits for next completed Future.
    -
  • Map() and as_completed() also accept 'timeout' argument. It causes TimeoutError when next() is called if result isn't available in 'timeout' seconds from the original call.
  • +
  • Map() and as_completed() also accept 'timeout'. It causes futures.TimeoutError when next() is called. Map() times from original call and as_completed() from first call to next().
  • Exceptions that happen inside threads are raised when next() is called on map's iterator or when result() is called on a Future. Its exception() method returns exception or None.
  • ProcessPoolExecutor provides true parallelism, but everything sent to/from workers must be pickable. Queues must be sent using executor's 'initargs' and 'initializer' parameters.
@@ -2932,7 +2932,7 @@ $ deactivate # Deactivates the activ