AsyncReaderWriterLockTryEnterWriteLockAsync(TimeSpan) Method

Attempts to enter the lock with exclusive access where no other readers or writers can execute concurrently with the writer.

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.147 -- Release Build+71918e29738e2d0700de8aec0ad72324b16f1428
public Task<IDisposable> TryEnterWriteLockAsync(
	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