AsyncReaderWriterLockTryEnterWriteLockAsync(Int32) 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.169 -- Release Build+7697c0e717c25635c63b5dbfba5523a6bec4ec9b
public Task<IDisposable> TryEnterWriteLockAsync(
	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