Skip to content

Add initial Fuse implementation for Stream #40

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

Merged
merged 4 commits into from
Sep 17, 2019
Merged

Add initial Fuse implementation for Stream #40

merged 4 commits into from
Sep 17, 2019

Conversation

spacejam
Copy link
Contributor

@matklad does this address your use case?

@spacejam spacejam requested a review from a user August 16, 2019 13:35
Copy link
Member

@matklad matklad left a comment

Choose a reason for hiding this comment

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

LGTM!

Really, I think it's a very nasty usability problem that futures::select! requires a FusedStream (as opposed to calling .fuse internally, like it is recommended to do for iterators), but I think I see why this needs to be the case.

I wonder if we have long-term plan here... Could we just require that all streams are fused?

Tyler Neely added 3 commits September 17, 2019 23:48
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
@yoshuawuyts
Copy link
Contributor

I've rebased @spacejam's excellent work on master; it's all passing now. Also removed the two helper methods on the Fuse struct that don't have counterparts in std so we only add the minimal API surface for now.

Given the amount of review this has had, I think this should be good to merge. Ref #129.

bors r+

bors bot added a commit that referenced this pull request Sep 17, 2019
40: Add initial Fuse implementation for Stream r=yoshuawuyts a=spacejam

@matklad does this address your use case?

Co-authored-by: Tyler Neely <tyler.neely@ferrous-systems.com>
Co-authored-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
@bors
Copy link
Contributor

bors bot commented Sep 17, 2019

Build succeeded

  • continuous-integration/travis-ci/push

@bors bors bot merged commit aa94d45 into master Sep 17, 2019
@ghost ghost deleted the tyler_fuse branch September 18, 2019 13:08
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.

4 participants