Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "abortAble"

Index

Type aliases

IAAP

IAAP<T>: IAbortAblePromise<T>

Type parameters

  • T

IAbortAblePromise

IAbortAblePromise<T>: IAbortAblePromiseBase<T | symbol>

a promise like object that has an abort method and return the ABORTED symbol in case it was

Type parameters

  • T

Variables

Const ABORTED

ABORTED: unique symbol = Symbol('aborted')

the symbol returned when the promise was aborted

Functions

abortAble

  • abortAble<T>(loader: PromiseLike<T>): IAAP<T>
  • abort able Promise wrapper, returns a promise which can be aborted, and trying to avoid executing therefore the wrapped promise

    Type parameters

    • T

    Parameters

    • loader: PromiseLike<T>

    Returns IAAP<T>

abortAbleAll

  • abortAbleAll<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | IAAP<T1>, T2 | IAAP<T2>, T3 | IAAP<T3>, T4 | IAAP<T4>, T5 | IAAP<T5>, T6 | IAAP<T6>, T7 | IAAP<T7>, T8 | IAAP<T8>, T9 | IAAP<T9>, T10 | IAAP<T10>]): IAAP<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>
  • abortAbleAll<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | IAAP<T1>, T2 | IAAP<T2>, T3 | IAAP<T3>, T4 | IAAP<T4>, T5 | IAAP<T5>, T6 | IAAP<T6>, T7 | IAAP<T7>, T8 | IAAP<T8>, T9 | IAAP<T9>]): IAAP<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>
  • abortAbleAll<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | IAAP<T1>, T2 | IAAP<T2>, T3 | IAAP<T3>, T4 | IAAP<T4>, T5 | IAAP<T5>, T6 | IAAP<T6>, T7 | IAAP<T7>, T8 | IAAP<T8>]): IAAP<[T1, T2, T3, T4, T5, T6, T7, T8]>
  • abortAbleAll<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | IAAP<T1>, T2 | IAAP<T2>, T3 | IAAP<T3>, T4 | IAAP<T4>, T5 | IAAP<T5>, T6 | IAAP<T6>, T7 | IAAP<T7>]): IAAP<[T1, T2, T3, T4, T5, T6, T7]>
  • abortAbleAll<T1, T2, T3, T4, T5, T6>(values: [T1 | IAAP<T1>, T2 | IAAP<T2>, T3 | IAAP<T3>, T4 | IAAP<T4>, T5 | IAAP<T5>, T6 | IAAP<T6>]): IAAP<[T1, T2, T3, T4, T5, T6]>
  • abortAbleAll<T1, T2, T3, T4, T5>(values: [T1 | IAAP<T1>, T2 | IAAP<T2>, T3 | IAAP<T3>, T4 | IAAP<T4>, T5 | IAAP<T5>]): IAAP<[T1, T2, T3, T4, T5]>
  • abortAbleAll<T1, T2, T3, T4>(values: [T1 | IAAP<T1>, T2 | IAAP<T2>, T3 | IAAP<T3>, T4 | IAAP<T4>]): IAAP<[T1, T2, T3, T4]>
  • abortAbleAll<T1, T2, T3>(values: [T1 | IAAP<T1>, T2 | IAAP<T2>, T3 | IAAP<T3>]): IAAP<[T1, T2, T3]>
  • abortAbleAll<T1, T2>(values: [T1 | IAAP<T1>, T2 | IAAP<T2>]): IAAP<[T1, T2]>
  • abortAbleAll<T>(values: (T | IAbortAblePromiseBase<symbol | T>)[]): IAAP<T[]>
  • similar to Promise.all but for abortAble

    Type parameters

    • T1

    • T2

    • T3

    • T4

    • T5

    • T6

    • T7

    • T8

    • T9

    • T10

    Parameters

    Returns IAAP<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>

  • similar to Promise.all but for abortAble

    Type parameters

    • T1

    • T2

    • T3

    • T4

    • T5

    • T6

    • T7

    • T8

    • T9

    Parameters

    Returns IAAP<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>

  • similar to Promise.all but for abortAble

    Type parameters

    • T1

    • T2

    • T3

    • T4

    • T5

    • T6

    • T7

    • T8

    Parameters

    Returns IAAP<[T1, T2, T3, T4, T5, T6, T7, T8]>

  • similar to Promise.all but for abortAble

    Type parameters

    • T1

    • T2

    • T3

    • T4

    • T5

    • T6

    • T7

    Parameters

    Returns IAAP<[T1, T2, T3, T4, T5, T6, T7]>

  • similar to Promise.all but for abortAble

    Type parameters

    • T1

    • T2

    • T3

    • T4

    • T5

    • T6

    Parameters

    Returns IAAP<[T1, T2, T3, T4, T5, T6]>

  • similar to Promise.all but for abortAble

    Type parameters

    • T1

    • T2

    • T3

    • T4

    • T5

    Parameters

    Returns IAAP<[T1, T2, T3, T4, T5]>

  • similar to Promise.all but for abortAble

    Type parameters

    • T1

    • T2

    • T3

    • T4

    Parameters

    Returns IAAP<[T1, T2, T3, T4]>

  • similar to Promise.all but for abortAble

    Type parameters

    • T1

    • T2

    • T3

    Parameters

    Returns IAAP<[T1, T2, T3]>

  • similar to Promise.all but for abortAble

    Type parameters

    • T1

    • T2

    Parameters

    • values: [T1 | IAAP<T1>, T2 | IAAP<T2>]

    Returns IAAP<[T1, T2]>

  • similar to Promise.all but for abortAble

    Type parameters

    • T

    Parameters

    Returns IAAP<T[]>

abortAbleFetch

  • abortAbleFetch(input: RequestInfo, init?: RequestInit): IAAP<Response>
  • Parameters

    • input: RequestInfo
    • Optional init: RequestInit

    Returns IAAP<Response>

abortAbleResolveNow

  • abortAbleResolveNow<T>(value: T): object
  • similar to Promise.resolve

    Type parameters

    • T

    Parameters

    • value: T

    Returns object

isAbortAble

isAsyncUpdate

  • isAsyncUpdate<T>(update: T | void | undefined | null | IAsyncUpdate<T>): boolean

isPromiseLike

  • isPromiseLike(p: PromiseLike<any> | any): boolean
  • Parameters

    • p: PromiseLike<any> | any

    Returns boolean