Skip to content

Commit 958be79

Browse files
gh-99830: asyncio: Document returns of remove_{reader,writer} (GH-100302)
(cherry picked from commit 5234e1c) Co-authored-by: Ben Darnell <ben@bendarnell.com>
1 parent 0f61020 commit 958be79

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Doc/library/asyncio-eventloop.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,8 @@ Watching file descriptors
858858

859859
.. method:: loop.remove_reader(fd)
860860

861-
Stop monitoring the *fd* file descriptor for read availability.
861+
Stop monitoring the *fd* file descriptor for read availability. Returns
862+
``True`` if *fd* was previously being monitored for reads.
862863

863864
.. method:: loop.add_writer(fd, callback, *args)
864865

@@ -871,7 +872,8 @@ Watching file descriptors
871872

872873
.. method:: loop.remove_writer(fd)
873874

874-
Stop monitoring the *fd* file descriptor for write availability.
875+
Stop monitoring the *fd* file descriptor for write availability. Returns
876+
``True`` if *fd* was previously being monitored for writes.
875877

876878
See also :ref:`Platform Support <asyncio-platform-support>` section
877879
for some limitations of these methods.

0 commit comments

Comments
 (0)