@@ -21,6 +21,11 @@ or separate processes, using :class:`ProcessPoolExecutor`.
2121Each implements the same interface, which is defined
2222by the abstract :class: `Executor ` class.
2323
24+ :class: `concurrent.futures.Future ` must not be confused with
25+ :class: `asyncio.Future `, which is designed for use with :mod: `asyncio `
26+ tasks and coroutines. See the :doc: `asyncio's Future <asyncio-future >`
27+ documentation for a detailed comparison of the two.
28+
2429.. include :: ../includes/wasm-notavail.rst
2530
2631Executor Objects
@@ -308,7 +313,7 @@ the bytes over a shared :mod:`socket <socket>` or
308313
309314 .. note ::
310315 The executor may replace uncaught exceptions from *initializer *
311- with :class: `~concurrent.futures.interpreter .ExecutionFailed `.
316+ with :class: `~concurrent.interpreters .ExecutionFailed `.
312317
313318 Other caveats from parent :class: `ThreadPoolExecutor ` apply here.
314319
@@ -320,11 +325,11 @@ likewise serializes the return value when sending it back.
320325When a worker's current task raises an uncaught exception, the worker
321326always tries to preserve the exception as-is. If that is successful
322327then it also sets the ``__cause__ `` to a corresponding
323- :class: `~concurrent.futures.interpreter .ExecutionFailed `
328+ :class: `~concurrent.interpreters .ExecutionFailed `
324329instance, which contains a summary of the original exception.
325330In the uncommon case that the worker is not able to preserve the
326331original as-is then it directly preserves the corresponding
327- :class: `~concurrent.futures.interpreter .ExecutionFailed `
332+ :class: `~concurrent.interpreters .ExecutionFailed `
328333instance instead.
329334
330335
@@ -720,15 +725,6 @@ Exception classes
720725
721726 .. versionadded :: 3.14
722727
723- .. exception :: ExecutionFailed
724-
725- Raised from :class: `~concurrent.futures.InterpreterPoolExecutor ` when
726- the given initializer fails or from
727- :meth: `~concurrent.futures.Executor.submit ` when there's an uncaught
728- exception from the submitted task.
729-
730- .. versionadded :: 3.14
731-
732728.. currentmodule :: concurrent.futures.process
733729
734730.. exception :: BrokenProcessPool
0 commit comments