Skip to content

Deduplicate tokio/futures-io implementation? #384

@NobodyXu

Description

@NobodyXu

(Continuation of #377)

The futures-io traits and tokio traits are almost identical except for different name for some methods.

And yet we have two separate impl with lots of duplicate code, having to maintain two implementations adds more burden.

It makes more sense to have a futures-io impl, possibly in a separate crate since futures-io is much faster to compile than tokio, and then simply have the tokio impl wraps its io traits in futures-io to use it.

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