메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
Dispose ( ) : void |
public CancellationGuard ( CancellationToken cancellationToken ) : System | ||
cancellationToken | CancellationToken | Used to signal cancellation requests. |
리턴 | 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 |
리턴 | System |