Options
All
  • Public
  • Public/Protected
  • All
Menu

A promise, which can be cancelled.

Type parameters

  • T = any

Hierarchy

  • CancelablePromise

Implements

  • Promise<T>
  • PromiseLike<T>

Index

Constructors

Properties

promise: Promise<T>

Accessors

  • get [toStringTag](): string
  • get isCanceled(): boolean

Methods

  • catch<TResult>(onrejected?: null | ((reason: any) => TResult | PromiseLike<TResult>)): Promise<T | TResult>
  • inheritdoc

    Type parameters

    • TResult = never

    Parameters

    • Optional onrejected: null | ((reason: any) => TResult | PromiseLike<TResult>)

    Returns Promise<T | TResult>

  • finally(onfinally?: null | (() => void)): Promise<T>
  • then<TResult1, TResult2>(onfulfilled?: null | ((value: T) => TResult1 | PromiseLike<TResult1>), onrejected?: null | ((reason: any) => TResult2 | PromiseLike<TResult2>)): Promise<TResult1 | TResult2>
  • inheritdoc

    Type parameters

    • TResult1 = T

    • TResult2 = never

    Parameters

    • Optional onfulfilled: null | ((value: T) => TResult1 | PromiseLike<TResult1>)
    • Optional onrejected: null | ((reason: any) => TResult2 | PromiseLike<TResult2>)

    Returns Promise<TResult1 | TResult2>

Generated using TypeDoc