Skip to content

feat: add back-pressure configuration to FixedSizeQueue#62

Merged
OliverVea merged 3 commits into
masterfrom
feat/fixed-size-queue-back-pressure
Mar 28, 2026
Merged

feat: add back-pressure configuration to FixedSizeQueue#62
OliverVea merged 3 commits into
masterfrom
feat/fixed-size-queue-back-pressure

Conversation

@OliverVea
Copy link
Copy Markdown
Owner

Summary

  • Adds FullQueueBehavior enum with three policies: DropOldest (default), DropNewest, and Throw
  • FixedSizeQueue<T> constructor accepts an optional fullBehavior parameter (backward-compatible)
  • Enqueue now returns boolfalse when DropNewest rejects an item

Closes #56

Test plan

  • All 163 existing + new tests pass (dotnet test)
  • New tests cover DropNewest (full/not full), Throw (full/not full), DropOldest return value, and default behavior
  • README updated with embedme snippets showing all three policies

🤖 Generated with Claude Code

OliverVea and others added 3 commits March 28, 2026 02:41
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@OliverVea OliverVea merged commit 6df806b into master Mar 28, 2026
12 checks passed
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.

feat: add back-pressure configuration to FixedSizeQueue

1 participant