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

Separate blocking and non-blocking methods instead of using skipBlockingWait #101

Closed lcabancla closed 6 months ago

lcabancla commented 6 months ago

Instead of setting skipBlockingWait at the client level, have two separate acquire methods - for one for blocking and another for non-blocking acquires. skipBlockingWait can then be deprecated. This allows the user to use the same client for both.