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