grandecola / grandecola/bigqueue
Allow calls to be blocked on empty queue
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Go
- Stars
- 454
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
This is similar to a producer-consumer model, except that queue can never be full. We should potentially add an API such that instead of returning an error when queue is empty, we simply block the caller until an element is added and can be returned.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by locating the queue API and the existing empty-queue error path, then review how producers add elements. Done means a separate API behavior lets a caller wait when the queue is empty and return once an element is available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100