Skip to content

Improve asyncio.loop.add_read and asyncio.loop.add_writer documentation #126137

@jmgurney

Description

@jmgurney

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions