AsyncExclusiveLock
Represents asynchronous mutually exclusive lock.
Indicates that exclusive lock taken.
Initializes a new asynchronous exclusive lock.
public AsyncExclusiveLock()
Initializes a new asynchronous exclusive lock.
Enters the lock in exclusive mode asynchronously.
Enters the lock in exclusive mode asynchronously.
Releases previously acquired exclusive lock.
Interrupts all pending callers in the queue and acquires the lock.
Interrupts all pending callers in the queue and acquires the lock.
Attempts to obtain exclusive lock synchronously without blocking caller thread.
Tries to enter the lock in exclusive mode asynchronously, with an optional time-out.
public ValueTask<bool> TryStealAsync(object reason, TimeSpan timeout, CancellationToken token = default)
Interrupts all pending callers in the queue and acquires the lock.