We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
loop.add_reader
loop.add_writer
1 parent 4f01a12 commit 1d2d62cCopy full SHA for 1d2d62c
Doc/library/asyncio-eventloop.rst
@@ -960,6 +960,9 @@ Watching file descriptors
960
invoke *callback* with the specified arguments once *fd* is available for
961
reading.
962
963
+ Any preexisting callback registered for *fd* is cancelled and replaced by
964
+ *callback*.
965
+
966
.. method:: loop.remove_reader(fd)
967
968
Stop monitoring the *fd* file descriptor for read availability. Returns
@@ -971,6 +974,9 @@ Watching file descriptors
971
974
972
975
writing.
973
976
977
978
979
980
Use :func:`functools.partial` :ref:`to pass keyword arguments
981
<asyncio-pass-keywords>` to *callback*.
982
0 commit comments