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

DoubleEndedStream extension #562

Merged
merged 18 commits into from
Dec 13, 2019
Merged

DoubleEndedStream extension #562

merged 18 commits into from
Dec 13, 2019

Conversation

felipesere
Copy link
Contributor

@felipesere felipesere commented Nov 20, 2019

This is a first stab at a skeleton implementation of the DoubleEndedStream extension.
Docs are mostly still outstanding, I'll add them in based on their Stream variation as this evolves.

I also added a dummy "Sample" implementation of DoubleEndedStream for a vec.
While not the worst, this probably needs a better name and place,
possibly even double_ended_stream::from_iter(...)?

Looking forward for any feedback and advice :)

#129

@felipesere felipesere changed the title Double ended ext DoubleEndedStream extension Nov 20, 2019
Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a great start; thanks for putting in the work!

src/stream/double_ended/mod.rs Outdated Show resolved Hide resolved
src/stream/double_ended/mod.rs Outdated Show resolved Hide resolved
@felipesere
Copy link
Contributor Author

I'm kind of stuck with figuring out how and where to reexport different chunks of the API.
The first thing is that I am not 100% sure what the import structure should look like and then how to map it to files/modles/uses.

Could someone nudge me in the right direction?

@yoshuawuyts
Copy link
Contributor

@felipesere could you maybe share more details where you're getting stuck? What are you trying to do that isn't working? This is a rather large PR, and I don't have the information quite ready the way you do I think 😅

@yoshuawuyts
Copy link
Contributor

Oops, I accidentally pushed changes onto this branch, then reset the changes with a force push. It should be all good now. If anyone's wondering what had happened; sorry about that!.

Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks good; left one question though. But if that's addressed I think we should be good to merge!

src/stream/double_ended_stream/from_iter.rs Outdated Show resolved Hide resolved
@yoshuawuyts yoshuawuyts merged commit 3d3bf91 into async-rs:master Dec 13, 2019
@felipesere felipesere deleted the double_ended_ext branch December 13, 2019 09:55
This was referenced Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants