awslabs / amazon-dynamodb-lock-client

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

Open mrshappy0 opened 2 years ago

mrshappy0 commented 2 years ago

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?