Thanks to visit codestin.com Credit goes to github.com
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 1439b81 commit b2adf55Copy full SHA for b2adf55
1 file changed
Doc/library/asyncio-eventloop.rst
@@ -970,6 +970,9 @@ Watching file descriptors
970
invoke *callback* with the specified arguments once *fd* is available for
971
reading.
972
973
+ Any preexisting callback registered for *fd* is cancelled and replaced by
974
+ *callback*.
975
+
976
.. method:: loop.remove_reader(fd)
977
978
Stop monitoring the *fd* file descriptor for read availability. Returns
@@ -981,6 +984,9 @@ Watching file descriptors
981
984
982
985
writing.
983
986
987
988
989
990
Use :func:`functools.partial` :ref:`to pass keyword arguments
991
<asyncio-pass-keywords>` to *callback*.
992
0 commit comments