Open dhickie opened 3 months ago
@preardon Can you take a look at this?
@iancooper I'm happy to drop sync flows if you are. let me know and I'll get on it
Do it
This has now been merged in for both v9 and v10 and will come out with the next release
Is your feature request related to a problem? Please describe. When implementing a DynamoDb implementation of
IDistributedLock
, I came across the issue that the .NET SDK for Dynamo DB doesn't support synchronous methods. As a result, when implementingObtainLock
, there's a risk of deadlock when doing the following:Describe the solution you'd like Drop the synchronous methods from the interface. Implementations that don't have
async
methods can useTask.FromResult
as a workaround. This would, however, also mean that the lambda passed to theTimer
instance inTimedOutboxSweeper
would also need to be async.Additional context Builds on the recent distributed lock work by @preardon.