CompatibleCancellationTokenCancel Method

Cancels the operation.

Definition

Namespace: Gemstone.Threading.Cancellation
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.171 -- Release Build+4f4d518944b843c059d40b523747cd410a7c216d
public virtual bool Cancel()

Return Value

Boolean
true if the operation was cancelled; otherwise false.

Implements

ICancellationTokenCancel

Remarks

The token can only be cancelled if a CancellationTokenSource was provided.

Exceptions

InvalidOperationExceptionCancellationTokenSource not available, token cannot be cancelled.

See Also