AsyncReaderWriterLockTryEnterReadLockAsync(Int32) 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.190 -- Release Build+e6c965bde1a553e8c2e68ce94dbab66688b83dc6
public Task<IDisposable> TryEnterReadLockAsync(
	int milliseconds
)

Parameters

milliseconds  Int32
The number of milliseconds 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