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:
Miss Islington (bot) 2022-12-16 11:14:28 -08:00 committed by GitHub
parent 138c2e6f3f
commit 4c810f92ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.