AsyncLock.Releaser Struct
Definition
Represents an acquired AsyncLock. Disposing the releaser releases the lock.
public readonly struct AsyncLock.Releaser : IDisposable
- Implements
- Inherited Members
- Extension Methods
Remarks
The releaser is a lightweight value type returned by LockAsync(). It is intended to be consumed
by a single using statement and disposed exactly once. Copying a releaser and disposing more than one
copy releases the lock more than once and is undefined behavior, mirroring the contract of the framework's
value-type enumerators.
Methods
Dispose()
Releases the owning AsyncLock.
public void Dispose()
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |