Acquire(TimeSpan, CancellationToken)
Synchronously acquires the lock bound to the current handle.
Declaration
bool Acquire(TimeSpan timeout, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | timeout | Timeout. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
bool |
|