mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
bpo-31960: Fix asyncio.Future documentation for thread (un)safety. (#4319)
This commit is contained in:
parent
39a156c505
commit
22b1128559
2 changed files with 4 additions and 2 deletions
|
|
@ -216,7 +216,7 @@ Future
|
|||
raise an exception when the future isn't done yet.
|
||||
|
||||
- Callbacks registered with :meth:`add_done_callback` are always called
|
||||
via the event loop's :meth:`~AbstractEventLoop.call_soon_threadsafe`.
|
||||
via the event loop's :meth:`~AbstractEventLoop.call_soon`.
|
||||
|
||||
- This class is not compatible with the :func:`~concurrent.futures.wait` and
|
||||
:func:`~concurrent.futures.as_completed` functions in the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue