KeyedAsyncLock<TKey>.KeyedAsyncLockLease Struct

Represents a disposable lease for a KeyedAsyncLock<TKey>. Disposing the lease releases the lock for the key.

public readonly struct KeyedAsyncLockLease : IDisposable

Remarks

Only the first disposal of a lease releases the key. Disposing the same lease again, or disposing a copy of an already-disposed lease, does nothing instead of releasing an acquisition made in the meantime.

Implements

Methods

NameDescription
Dispose()
public void Dispose()

No documentation is available.