bpo-31960: Fix asyncio.Future documentation for thread (un)safety. (#4319)

This commit is contained in:
Antoine Pitrou 2017-11-07 17:03:28 +01:00 committed by GitHub
parent 39a156c505
commit 22b1128559
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -32,11 +32,13 @@ class Future:
Differences:
- This class is not thread-safe.
- result() and exception() do not take a timeout argument and
raise an exception when the future isn't done yet.
- Callbacks registered with add_done_callback() are always called
via the event loop's call_soon_threadsafe().
via the event loop's call_soon().
- This class is not compatible with the wait() and as_completed()
methods in the concurrent.futures package.