Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Doc/library/concurrent.futures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Executor Objects
future = executor.submit(pow, 323, 1235)
print(future.result())


.. method:: map(fn, *iterables, timeout=None, chunksize=1, buffersize=None)

Similar to :func:`map(fn, *iterables) <map>` except:
Expand Down Expand Up @@ -152,7 +153,9 @@ And::

executor = ThreadPoolExecutor(max_workers=1)
executor.submit(wait_on_future)

# Note: calling future.result() here would cause a deadlock because the single
# worker thread is already executing wait_on_future(), which itself is waiting
# for a result from the same executor.

.. class:: ThreadPoolExecutor(max_workers=None, thread_name_prefix='', initializer=None, initargs=())

Expand Down
Loading