Class SemaphoreSlimRequest
Represents a tentative request to acquire a SemaphoreSlim.
public sealed class SemaphoreSlimRequest : IDisposable
- Inheritance
-
SemaphoreSlimRequest
- Implements
- Inherited Members
Constructors
SemaphoreSlimRequest(SemaphoreSlim, CancellationToken)
Initializes a new instance of the SemaphoreSlimRequest class.
public SemaphoreSlimRequest(SemaphoreSlim semaphore, CancellationToken cancellationToken)
Parameters
semaphore
SemaphoreSlimThe semaphore.
cancellationToken
CancellationTokenThe cancellation token.
Properties
Task
Gets the semaphore wait task.
public Task Task { get; }
Property Value
- Task
The semaphore wait task.
Methods
Dispose()
public void Dispose()