Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PromiseFactory

Hierarchy

  • PromiseFactory

Index

Accessors

Static Promise

  • Returns IPromiseApi

  • Parameters

    Returns void

Static type

  • get type(): string
  • Returns string

Methods

Static create

  • create<T>(init?: function, onCancel?: Function): IPromise<T>
  • Type parameters

    • T

    Parameters

    • Optional init: function
        • (completeDispatch: any, errorDispatch: any, progressDispatch: any): void
        • Parameters

          • completeDispatch: any
          • errorDispatch: any
          • progressDispatch: any

          Returns void

    • Optional onCancel: Function

    Returns IPromise<T>

Static reject

  • Type parameters

    • U

    Parameters

    Returns IPromise<U>

Static resolve

  • Type parameters

    • U

    Parameters

    Returns IPromise<U>

Static switchPromise

  • Parameters

    Returns void

Generated using TypeDoc