AcquireAsync(TimeSpan, CancellationToken)
Asynchronously acquires the lock bound to the current handle.
Declaration
Task<bool> AcquireAsync(TimeSpan timeout, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | timeout | Timeout. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> |
|