-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Improve asyncio.loop.add_read
and asyncio.loop.add_writer
documentation
#126137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looks like it replaces the last callback: https://floss.social/@gwidion/113392129452013893
|
Thanks! You're welcome to submit a PR for patching the docs! (but check whether there isn't more explanation in the tutorial or somewhere else; asyncio docs are a bit spread around) |
asyncio.loop.add_read
and asyncio.loop.add_writer
documentation
…ter` (pythonGH-128666) (cherry picked from commit b2adf55) Co-authored-by: Kumar Aditya <[email protected]>
…ter` (pythonGH-128666) (cherry picked from commit b2adf55) Co-authored-by: Kumar Aditya <[email protected]>
Documentation
The documentation for add_read/add_writer (https://docs.python.org/3/library/asyncio-eventloop.html#watching-file-descriptors ) does not specify what happens if you add two different callbacks for the same fd. Do both callbacks get called? Or does only one get called? Does the first one or the last callback get called (or maybe a random one, unlikely, but could be valid per current documentation)?
Linked PRs
loop.add_reader
andloop.add_writer
#128666loop.add_reader
andloop.add_writer
(GH-128666) #128667loop.add_reader
andloop.add_writer
(GH-128666) #128668The text was updated successfully, but these errors were encountered: