Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[spec] Add with_lock options #213

Open
wants to merge 2 commits into
base: yao-spec-batch-update
Choose a base branch
from

Conversation

xyaoinum
Copy link
Collaborator

@xyaoinum xyaoinum commented Dec 19, 2024

Add with_lock options for individual methods and for batchUpdate() -- When with_lock is specified, create a callback algorithm (for updating the DB), and invoke the [=handle callback within a shared storage lock=] to handle the callback after lock is granted (, and when the callback is invoked, the lock should be auto released).


Preview | Diff

Add `with_lock` options for individual methods and for batchUpdate() -- When `with_lock` is specified, create a callback algorithm (for updating the DB), and invoke the [=handle callback within a shared storage lock=] to handle the callback after lock is granted (, and when the callback is invoked, the lock should be auto released).
@xyaoinum
Copy link
Collaborator Author

@pythagoraskitty PTAL (after reviewing: #211). Thanks!

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