Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CancelToken<T>

Type parameters

  • T

Hierarchy

  • CancelToken

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

guid

guid: string

isCanceled

isCanceled: boolean

promise

promise: Promise<T>

Private resolve

resolve: function | undefined

Methods

cancel

  • cancel(): void

onCancel

  • onCancel(func: function): void
  • Parameters

    • func: function
        • (value?: T | PromiseLike<T>): void
        • Parameters

          • Optional value: T | PromiseLike<T>

          Returns void

    Returns void

Generated using TypeDoc