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

StreamExt::cycle? #1993

Closed
lovesegfault opened this issue Nov 30, 2019 · 2 comments · Fixed by #2252
Closed

StreamExt::cycle? #1993

lovesegfault opened this issue Nov 30, 2019 · 2 comments · Fixed by #2252

Comments

@lovesegfault
Copy link

Coming from Iterators I was hoping there would be a way to endlessly loop a Stream, like you can cycle an Iterator; there isn't.

Should such a method exist in StreamExt? Is there a way to work around this?

@lqf96
Copy link

lqf96 commented Nov 30, 2019

async-std has Stream::cycle, and they are compatible because async-std's Stream is simply a reexport of this crate...

@taiki-e
Copy link
Member

taiki-e commented Nov 1, 2020

Note that async-std's StreamExt::cycle is unsound: async-rs/async-std#903

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants