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

read/take with n parameter (CON-25) #37

Open
ilya1725 opened this issue Dec 9, 2016 · 3 comments
Open

read/take with n parameter (CON-25) #37

ilya1725 opened this issue Dec 9, 2016 · 3 comments
Assignees

Comments

@ilya1725
Copy link

ilya1725 commented Dec 9, 2016

Several examples (in Python) presented in this repository use either read and take functions. Generally, those functions will absorb all samples in the queue. Is there a way to use something like take_next_sample? Or perhaps use read, but then extract from the list of samples the ones that weren't read before?

@gianpiero
Copy link
Member

Hello @ilya1725 ,

You are right: right now we call take or read passing max_sample = DDS_LENGTH_UNLIMITED. We could expose a take(n) and a read(n) that would allow the user to specify max_sample.

Would that work for your use case?

@ilya1725
Copy link
Author

yes, it will.

@gianpiero
Copy link
Member

Added to feature request CON-25

@gianpiero gianpiero self-assigned this Jan 11, 2017
@gianpiero gianpiero changed the title read/take _next_sample read/take with n parameter (CON-25) Aug 4, 2017
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

No branches or pull requests

2 participants