THPDFCancellationToken Class

Tilbyder et trådsikkert one-shot-annulleringssignal, som langtidskørende HotPDF-operationer observerer ved stabile arbejdsgrænser

Deklaration

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

Enhed

HPDFTypes

Medlemmer

NavnFormål
CancelAnmoder atomisk og permanent om annullering
IsCancellationRequestedLæser annulleringsstatus sikkert fra enhver tråd
ThrowIfCancellationRequestedRejser EHPDFOperationCancelled med det medsendte operationsnavn ved annullering

Brugsnoter

Relaterede API'er