THPDFCancellationToken Class

Bietet ein threadsicheres Einmal-Abbruchsignal, das langlaufende HotPDF-Operationen an stabilen Arbeitsgrenzen beobachten

Deklaration

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

Unit

HPDFTypes

Mitglieder

NameZweck
CancelFordert den Abbruch atomar und dauerhaft an
IsCancellationRequestedLiest den Abbruchzustand sicher aus jedem Thread
ThrowIfCancellationRequestedLöst bei Abbruch EHPDFOperationCancelled mit dem übergebenen Operationsnamen aus

Hinweise zur Nutzung

Verwandte APIs