DotNext.Threading by .NET Foundation and Contributors

<PackageReference Include="DotNext.Threading" Version="4.14.0" />

 QueuedSynchronizer

Provides a framework for implementing asynchronous locks and related synchronization primitives that rely on first-in-first-out (FIFO) wait queues.

Cancels all suspended callers.

public void Dispose(Exception reason)

Releases all resources associated with this object.

Disposes this synchronization primitive gracefully.

Gets a list of suspended callers respecting their order in wait queue.

public void SetCallerInformation(object information)

Sets caller information in DEBUG configuration.

public void TrackSuspendedCallers(Func<object> callerInfoProvider = null)

Enables capturing information about suspended callers in DEBUG configuration.