AsyncReaderWriterLockTryEnterReadLockAsync(TimeSpan) Method

Attempts to enter the lock with concurrent access where all readers can execute concurrently with respect to each other.

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.137 -- Release Build+241897d8e370542c4e111be073532bb8b8e15519
public Task<IDisposable> TryEnterReadLockAsync(
	TimeSpan timeout
)

Parameters

timeout  TimeSpan
The amount of time to wait before timing out.

Return Value

TaskIDisposable
The token used to control the duration of entry.

Exceptions

TimeoutExceptionThe lock could not be entered before the timeout expired.

See Also