AsyncLock
AsyncLock copied to clipboard
An async/await-friendly lock for .NET, complete with asynchronous waits, safe reëntrance, and more.
This code deadlocks: https://dotnetfiddle.net/CkK674 Actually that test has been a challenge for every single async lock I currently know of, so I made my own async lock [that passes](https://dotnetfiddle.net/OFlTW0). I'm...
 Yes, of course, i known what can i do `using(await lock.AsyncLock())`, but this is not entirely intuitive given the official syntax for IAsyncDisposable If you don't mind, i can...
I have taken the sample from the "AsyncLock usage example" section of the documentation and added a for loop around the inner reentrant call and observed a deadlock occur This...
Hi, I'm assuming the lack of `ConfigureAwait(false)` in https://github.com/neosmart/AsyncLock/blob/master/AsyncLock/AsyncLock.cs means that you intend the default, `ConfigureAwait(true)`? I just wanted to double check if that is the case, and if so,...
Currently, `async`/`await` continuations and `Task.ContinueWith(...)` continuations are marshalled back to the captured context (`TaskScheduler` or `SynchronizationContext`) as is the default behavior with these tools. I believe there is no reason...
Changes the target frameworks from (`netstandard1.3`, `netstandard2.1`) to (`netstandard2.0`, `netstandard2.1`, `net8.0`, `net9.0`). Targeting `netstandard1.3` is [no longer recommended by Microsoft](https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0#net-standard-not-deprecated) since the frameworks compatible with `netstandard1.3` but not by `netstandard2.0`...
Is it possible to implement locking in a way that calling Lock in async method would work as well? As I can see from the librarys code, currently I should...
Hi, i installed this library via nuget. I have now access to the class `AsyncLockSlim` from this nuget, which i cannot find in this repository. Is there a file missing...