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

can client.acquireLock callback be made asynchronous? #67

Open
mrshappy0 opened this issue Oct 19, 2021 · 0 comments
Open

can client.acquireLock callback be made asynchronous? #67

mrshappy0 opened this issue Oct 19, 2021 · 0 comments

Comments

@mrshappy0
Copy link

mrshappy0 commented Oct 19, 2021

Will there be undesirable effects from doing something this --> client.acquireLock(id, async (err, lock) => {})

A lot of my code that has to happen between setting the lock and releasing is using async/await. Would setting this callback as asynchronous cause issues?

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

No branches or pull requests

1 participant