Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plan to port std::sync::mpsc or other channel types? #72

Closed
imtsuki opened this issue Aug 17, 2019 · 5 comments
Closed

Any plan to port std::sync::mpsc or other channel types? #72

imtsuki opened this issue Aug 17, 2019 · 5 comments
Labels
api design Open design questions enhancement New feature or request

Comments

@imtsuki
Copy link

imtsuki commented Aug 17, 2019

Hi,

I'm trying replacing tokio with async-std in my own project and it's truly amazing. However there's no channel-equivalents like std::sync::mpsc in async-std, so I have to use the futures crate's version.

I think it would be very nice to have mpsc, oneshot, etc. from futures crate re-exported in this crate's namespace for consistency and convenience. Any plan for that?

@skade
Copy link
Collaborator

skade commented Aug 17, 2019

There is a plan! We're not quite sure though if we will ship it in this library or in a co-library. The channels module in libstd is widely considered a mistake, especially because there's reasons to use different channel implementations for different use-cases even in the same codebase.

@ghost
Copy link

ghost commented Aug 18, 2019

I've started implementing an async version of crossbeam-channel, which will be separate from async-std, but belong in this Github organization.

@sdroege
Copy link

sdroege commented Aug 18, 2019

The channels module in libstd is widely considered a mistake, especially because there's reasons to use different channel implementations for different use-cases even in the same codebase.

Just for future reference: some of the concerns and a possible way forward for the std channel are in @stjepang's blog post about that here: https://stjepang.github.io/2019/03/02/new-channels.html

@ghost
Copy link

ghost commented Sep 18, 2019

Closing in favor of #212

@ghost ghost closed this as completed Sep 18, 2019
@ghost
Copy link

ghost commented Oct 25, 2019

There is now a channel implementation in the master branch of async-std, behind the unstable flag:
#380

moh-eulith pushed a commit to moh-eulith/async-std that referenced this issue Mar 31, 2022
cargo: Bump socket2 to 0.4.2 for Haiku, BSD fixes
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api design Open design questions enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants