Skip to content

Commit 2a5ba3e

Browse files
committed
gh-141617: Add missing result() call in concurrent.futures example
1 parent ed73c90 commit 2a5ba3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/concurrent.futures.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ And::
151151
print(f.result())
152152

153153
executor = ThreadPoolExecutor(max_workers=1)
154-
executor.submit(wait_on_future)
154+
executor.submit(wait_on_future).result()
155155

156156

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

0 commit comments

Comments
 (0)