mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-99830: asyncio: Document returns of remove_{reader,writer} (#100302)
This commit is contained in:
parent
f23236a92d
commit
5234e1cbea
1 changed files with 4 additions and 2 deletions
|
@ -932,7 +932,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)
|
||||
|
||||
|
@ -945,7 +946,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