Skip to content

Use crossbeam-channel instead of stdlib #160

@matklad

Description

@matklad

Hi! My understanding is that currently notify hard-codes the usage of std::mpsc, and this is a bit unfortunate: there are many channel implementations in Rust (crossbeam-channel most notably), and the std version is not really great: it lacks select, which severally restricts its applicability.

It would be cool if notify had a trait EventSink { fn send(&mut self, Event); } and used that instead of any particular channel implementation.

Though, for practical purposes, perhaps just betting on crossbeam-channel would be even better?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions