CancellationTokenSource 类

定义

A CancellationTokenSource is used to create CancellationToken object and manage it.

public class CancellationTokenSource
继承
java.lang.Object
CancellationTokenSource

构造函数

CancellationTokenSource()

Initializes a new instance of the system.fabric.CancellationTokenSource class.

方法

cancel()

Requests cancel on the CancellationToken being managed by this object.

getToken()

Returns the cancellation token which is being by this system.fabric.CancellationTokenSource object.

isCancellationRequested()

Gets whether cancellation has been requested for this system.fabric.CancellationTokenSource.

适用于