THPDFCancellationToken Class

Provides a thread-safe one-shot cancellation signal that long-running HotPDF operations observe at stable work boundaries

声明

THPDFCancellationToken = class(TObject)
public
  procedure Cancel;
  procedure ThrowIfCancellationRequested(
    const OperationName: AnsiString = 'operation');
  property IsCancellationRequested: Boolean read GetIsCancellationRequested;
end;

单元

HPDFTypes

Members

名称用途
CancelAtomically and permanently requests cancellation
IsCancellationRequestedReads the cancellation state safely from any thread
ThrowIfCancellationRequestedRaises EHPDFOperationCancelled with the supplied operation name when cancelled

使用说明

相关 API