Skip to content

feat: add Mutex-compatible withLock API#28

Merged
AllDmeat merged 4 commits intomainfrom
feature/mutex-withlock-compat
May 4, 2026
Merged

feat: add Mutex-compatible withLock API#28
AllDmeat merged 4 commits intomainfrom
feature/mutex-withlock-compat

Conversation

@AllDmeat
Copy link
Copy Markdown
Contributor

Summary

  • add DBThreadSafeContainer.withLock(_:) with exclusive semantics matching Apple Mutex
  • keep legacy read/write APIs intact while routing write closures through the new compatible API
  • add regression tests and document withLock as the migration-friendly container API

Test Plan

  • swift test

AllDmeat and others added 4 commits April 30, 2026 18:42
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@AllDmeat AllDmeat merged commit e4d3b1d into main May 4, 2026
5 checks passed
@AllDmeat AllDmeat deleted the feature/mutex-withlock-compat branch May 4, 2026 15:00
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