Skip to content

Conversation

@gammazero
Copy link
Collaborator

@gammazero gammazero commented Sep 12, 2025

GetN retrieves up to n items that are currently available in the queue. If there are no items currently available, then none are returned and GetN does not wait for any.

GetN is used to poll the DSQueue for items and return batches of those items. This is the most efficient way of fetching currently available items.

GetN and Out can both be used to read items from the DSQueue, but they should not be used concurrently as items will be returned by one or the other indeterminately.

Closes #10

GetN retrieves up to n items that are currently available in the queue. If there are no items currently available, then none are returned and GetN does
not wait for any.

GetN is used to poll the DSQueue for items and return batches of those items. This is the most efficient way of fetching currently available items.

GetN and Out can both be used to read items from the DSQueue, but they should not be used concurrently as items will be returned by one or tha other indeterminately.
Copy link
Contributor

@guillaumemichel guillaumemichel left a comment

Choose a reason for hiding this comment

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

That's great!

@gammazero gammazero merged commit 12b0307 into main Sep 12, 2025
@gammazero gammazero deleted the add-getn-method branch September 12, 2025 20:30
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.

Need output buffering

3 participants