CancellationToken

Inheritance: java.lang.Object

public class CancellationToken

Propagates notification that operations should be canceled.

Methods

MethodDescription
isCancellationRequested()Gets whether cancellation has been requested for this token.

isCancellationRequested()

public boolean isCancellationRequested()

Gets whether cancellation has been requested for this token.

Returns: boolean - true, if cancellation for the underlying CancellationTokenSource has been requested; false otherwise.