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

Implement a version of GenericSubscriber and GenericAsyncSybscriber that returns a vector of data instead of a single item. #50

Open
filipdulic opened this issue May 10, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@filipdulic
Copy link
Owner

filipdulic commented May 10, 2020

The current implementation of the Trait Stream for Subscriber returns only one item from the buffer. Make an alternative version, perhaps called VectoredSubscriber, whose stream would always return a vector of items filled will all the items from the channel until the try_recv method returns TryRecvError::Empty.

This would optimize Task generation, and Task wake-ups in async operations.

@filipdulic filipdulic added the enhancement New feature or request label May 10, 2020
@filipdulic filipdulic changed the title Implement a version of Subscriber that returns a vector of data instead of a single item. Implement a version of GenericSubscriber and GenericAsyncSybscriber that returns a vector of data instead of a single item. May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant