Skip to content

Consider yielding early if we have filled buffers to some degree #149

@thomaseizinger

Description

@thomaseizinger

Today, we are doing as much work as possible within poll. We may want to consider yielding early but requesting an immediate wakeup again to allow other components to read from those buffers if they are on the same task.

cc @dignifiedquire (The code you see here is not the latest stable release used in rust-libp2p as of this writing. See libp2p/rust-libp2p#3013.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions