Skip to content

async_std::Stream interracts badly with futures::select! #23

Closed
@matklad

Description

@matklad

futures::select! requires that the streams selected over implement futures::FusedStream. There's a .fuse() method on futures::StreamExt which fuses any stream. The problem is, to use StreamExt::fuse on has to import this trait, and then the .next method collides between async_std::Stream and futures::StreamExt.

See also async-rs/a-chat#1 (comment)

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