Table of Contents

AsyncLock.Releaser Struct

Definition

Namespace
Bodu.Threading
Assembly
Bodu.Core.dll
Package
Bodu.Core 1.0.1
Source
AsyncLock.Releaser.cs

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

ProductVersions
.NET8, 10