Skip to content

Replace gammazero/deque with dharmab/collections#681

Merged
dharmab merged 1 commit into
mainfrom
replace-deque-with-collections
May 7, 2026
Merged

Replace gammazero/deque with dharmab/collections#681
dharmab merged 1 commit into
mainfrom
replace-deque-with-collections

Conversation

@dharmab
Copy link
Copy Markdown
Owner

@dharmab dharmab commented May 7, 2026

The old deque panicked on empty access, forcing callers to guard with length checks or risk crashes. The new Counting deque returns (T, bool) from Newest/At/Pop, letting us propagate empty-state cleanly.

Also fixes a potential deadlock where Direction() re-acquired RLock via Course().

The old deque panicked on empty access, forcing callers to guard with
length checks or risk crashes. The new Counting deque returns (T, bool)
from Newest/At/Pop, letting us propagate empty-state cleanly. Also fixes
a potential deadlock where Direction() re-acquired RLock via Course().

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dharmab dharmab enabled auto-merge (rebase) May 7, 2026 00:37
@dharmab dharmab merged commit e678e55 into main May 7, 2026
11 checks passed
@dharmab dharmab deleted the replace-deque-with-collections branch May 7, 2026 00:41
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.

1 participant