Skip to main content

TaskCanceler

Interface used to cancel running task (internal)

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

optionalonCancel

onCancel?: Option<() => void>

Cancel event callback

Methods

cancel

  • cancel(): void
  • Cancel by running callback, then unsetting it

    @example
    const canceler = new TaskCanceler();
    canceler.cancel();
Page Options