Skip to content

Commit 4c810f9

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 138c2e6 commit 4c810f9

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
@@ -915,7 +915,8 @@ Watching file descriptors
915915

916916
.. method:: loop.remove_reader(fd)
917917

918-
Stop monitoring the *fd* file descriptor for read availability.
918+
Stop monitoring the *fd* file descriptor for read availability. Returns
919+
``True`` if *fd* was previously being monitored for reads.
919920

920921
.. method:: loop.add_writer(fd, callback, *args)
921922

@@ -928,7 +929,8 @@ Watching file descriptors
928929

929930
.. method:: loop.remove_writer(fd)
930931

931-
Stop monitoring the *fd* file descriptor for write availability.
932+
Stop monitoring the *fd* file descriptor for write availability. Returns
933+
``True`` if *fd* was previously being monitored for writes.
932934

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

0 commit comments

Comments
 (0)