The Wayback Machine - https://web.archive.org/web/20200910204133/https://github.com/rust-lang/futures-rs/pull/1328
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

Shared stream WIP #1328

Open
wants to merge 2 commits into
base: master
from
Open

Shared stream WIP #1328

wants to merge 2 commits into from

Conversation

@tmccombs
Copy link
Contributor

tmccombs commented Nov 13, 2018

This is similar to #1217 but uses an underlying boxed slice to buffer items, and as a side-effect has a finite buffer size.

This is a work in progress. I'd still like to add some more rigorous unit tests, but I'd like feedback on my general approach, and have other eyes check my logic.

@ebkalderon
Copy link
Contributor

ebkalderon commented Dec 11, 2018

Has there been any additional progress on this recently? I happen to be looking for this exact feature.

@tmccombs
Copy link
Contributor Author

tmccombs commented Dec 11, 2018

I haven't done anything more with this. I would like some feedback on my approach before I put more effort into polishing it.

@tmccombs
Copy link
Contributor Author

tmccombs commented Dec 15, 2018

@cramertj, @MajorBreakfast any thoughts on this?

@tmccombs tmccombs force-pushed the tmccombs:shared-stream-vec branch from 265e6d5 to 4dc527e Dec 15, 2018
@tmccombs tmccombs force-pushed the tmccombs:shared-stream-vec branch from 4dc527e to 7b6a36e Jul 8, 2019
@tmccombs tmccombs force-pushed the tmccombs:shared-stream-vec branch from 91e9c3e to bc8d2bd Jul 20, 2019
@tmccombs tmccombs force-pushed the tmccombs:shared-stream-vec branch from bc8d2bd to ba5157a Nov 16, 2019
@tmccombs tmccombs force-pushed the tmccombs:shared-stream-vec branch from 2d96b5e to f19ca59 Jan 4, 2020
@ebkalderon
Copy link
Contributor

ebkalderon commented Jun 17, 2020

Is this PR still being worked on? I ran into several more cases over the past two years where this API could be useful. I'm willing to take over this PR and help drive it to completion if the original author is away. @cramertj, any thoughts on this?

@tmccombs
Copy link
Contributor Author

tmccombs commented Jun 17, 2020

I'm still around. It's been a while since I looked at this, but I was waiting on feedback from the maintainers.

tmccombs added 2 commits Oct 17, 2018
So that we can also use it for stream/shared
@tmccombs tmccombs force-pushed the tmccombs:shared-stream-vec branch from f19ca59 to 4bb28a3 Jun 17, 2020
@tmccombs
Copy link
Contributor Author

tmccombs commented Jun 17, 2020

Looks like the shared future::Shared was refactored a little bit. So I rebased my branch on master. One piece that is still missing from this is some unit tests for stream::Shared. If you wanted to help write some @ebkalderon that might be helpful.

@ebkalderon
Copy link
Contributor

ebkalderon commented Jun 18, 2020

Sure thing, @tmccombs! I'll write a few, perhaps based on the tests for future::Shared, and I'll post them here.

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

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.