-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
For the sake of discussion, I'm considering adding batch uploads from a queue consumer, but would require a batch read API.
Suggested API:
// BatchPeek returns a slice of up to 1-n objects without dequeueing them.
// Fewer than n items may be returned, depending on the remaining objects in the first segment.
// ErrEmpty is returned if the queue is empty.
BatchPeek(n int) ([]interface{}, error)
// BatchDequeue dequeues and returns a slice of up to 1-n objects.
// Fewer than n items may be returned, depending on the remaining objects in the first segment.
// ErrEmpty is returned if the queue is empty.
BatchDequeue(n int) ([]interface{}, error)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels