We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
loop.add_reader
loop.add_writer
1 parent a784cdf commit 182234fCopy full SHA for 182234f
1 file changed
Doc/library/asyncio-eventloop.rst
@@ -944,6 +944,9 @@ Watching file descriptors
944
invoke *callback* with the specified arguments once *fd* is available for
945
reading.
946
947
+ Any preexisting callback registered for *fd* is cancelled and replaced by
948
+ *callback*.
949
+
950
.. method:: loop.remove_reader(fd)
951
952
Stop monitoring the *fd* file descriptor for read availability. Returns
@@ -955,6 +958,9 @@ Watching file descriptors
955
958
956
959
writing.
957
960
961
962
963
964
Use :func:`functools.partial` :ref:`to pass keyword arguments
965
<asyncio-pass-keywords>` to *callback*.
966
0 commit comments