The AmazonDynamoDBLockClient is a general purpose distributed locking library built on top of DynamoDB. It supports both coarse-grained and fine-grained locking.
Other
472
stars
85
forks
source link
can client.acquireLock callback be made asynchronous? #67
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?
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?