Skip to content

feat: add support for custom lock manager instance#118

Open
niksy wants to merge 1 commit intoJulien-R44:mainfrom
niksy:lock-manager
Open

feat: add support for custom lock manager instance#118
niksy wants to merge 1 commit intoJulien-R44:mainfrom
niksy:lock-manager

Conversation

@niksy
Copy link
Copy Markdown

@niksy niksy commented Apr 23, 2026

Add support for passing custom lock manager instance via lockManager option (same style as logger injection).

This allows setting custom locks implementation such as Redis distributed locks.

The problem I see is that all Redis distributed locks implementations have async release functions while async-mutex uses sync function. This also means that we should change internal API to support this use case.

I’m going to make all the necessary changes but I wanted to see if this is the correct approach for this feature.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 23, 2026

⚠️ No Changeset found

Latest commit: d50fdf9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@niksy niksy force-pushed the lock-manager branch 3 times, most recently from 60afbf0 to 35bf9b7 Compare April 23, 2026 09:33
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