Méthode | Description | |
---|---|---|
CancellationGuard ( CancellationToken cancellationToken ) : System |
Registers a callback for the cancellationToken that blocks calls to CancellationTokenSource.Cancel() until Dispose has been called.
|
|
CancellationGuard ( CancellationToken cancellationToken, System.TimeSpan timeout ) : System |
Registers a callback for the cancellationToken that blocks calls to CancellationTokenSource.Cancel() until Dispose has been called.
|
Méthode | Description | |
---|---|---|
Dispose ( ) : void |
public CancellationGuard ( CancellationToken cancellationToken ) : System | ||
cancellationToken | CancellationToken | Used to signal cancellation requests. |
Résultat | System |
public CancellationGuard ( CancellationToken cancellationToken, System.TimeSpan timeout ) : System | ||
cancellationToken | CancellationToken | Used to signal cancellation requests. |
timeout | System.TimeSpan | A timespan after which the cancellation will be considered completed even if |
Résultat | System |