Table of Contents

Struct AsyncKeyedReaderWriterLockWriteToken<TKey>

Namespace
LfrlAnvil.Async
Assembly
LfrlAnvil.Core.dll

Represents an acquired write lock from an AsyncKeyedReaderWriterLock<TKey> instance.

public readonly struct AsyncKeyedReaderWriterLockWriteToken<TKey> : IDisposable where TKey : notnull

Type Parameters

TKey

Key's type.

Implements
Inherited Members
Extension Methods

Properties

Key

Associated key.

public TKey? Key { get; }

Property Value

TKey

Lock

Associated AsyncKeyedReaderWriterLock<TKey> instance.

public AsyncKeyedReaderWriterLock<TKey>? Lock { get; }

Property Value

AsyncKeyedReaderWriterLock<TKey>

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()