Struct AsyncUsableLock.LockReleaser
- Namespace
- Garyon.Mechanisms
- Assembly
- Garyon.dll
Represents an instance that automatically releases the currently held lock from an AsyncUsableLock instance when disposed.
public readonly record struct AsyncUsableLock.LockReleaser : IDisposable, IEquatable<AsyncUsableLock.LockReleaser>
- Implements
- Inherited Members
- Extension Methods
Constructors
LockReleaser(AsyncUsableLock?)
Represents an instance that automatically releases the currently held lock from an AsyncUsableLock instance when disposed.
public LockReleaser(AsyncUsableLock? AsyncLock)
Parameters
AsyncLockAsyncUsableLockThe AsyncUsableLock instance to unlock upon disposal. Allows null to enable default values to be used as no-ops.
Properties
AsyncLock
The AsyncUsableLock instance to unlock upon disposal. Allows null to enable default values to be used as no-ops.
public AsyncUsableLock? AsyncLock { get; init; }