mirror of
https://github.com/python/cpython.git
synced 2025-10-03 21:55:41 +00:00
gh-99830: asyncio: Document returns of remove_{reader,writer} (GH-100302)
(cherry picked from commit 5234e1cbea
)
Co-authored-by: Ben Darnell <ben@bendarnell.com>
This commit is contained in:
parent
138c2e6f3f
commit
4c810f92ba
1 changed files with 4 additions and 2 deletions
|
@ -915,7 +915,8 @@ Watching file descriptors
|
|||
|
||||
.. method:: loop.remove_reader(fd)
|
||||
|
||||
Stop monitoring the *fd* file descriptor for read availability.
|
||||
Stop monitoring the *fd* file descriptor for read availability. Returns
|
||||
``True`` if *fd* was previously being monitored for reads.
|
||||
|
||||
.. method:: loop.add_writer(fd, callback, *args)
|
||||
|
||||
|
@ -928,7 +929,8 @@ Watching file descriptors
|
|||
|
||||
.. method:: loop.remove_writer(fd)
|
||||
|
||||
Stop monitoring the *fd* file descriptor for write availability.
|
||||
Stop monitoring the *fd* file descriptor for write availability. Returns
|
||||
``True`` if *fd* was previously being monitored for writes.
|
||||
|
||||
See also :ref:`Platform Support <asyncio-platform-support>` section
|
||||
for some limitations of these methods.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue