Class StiPromise<T>

Type parameters

  • T

Hierarchy

  • StiPromise

Index

Constructors

constructor

Properties

returnValue

returnValue: T

Methods

abort

callCatch

  • callCatch(catchArgument?: any): void
  • Parameters

    • Default value catchArgument: any = null

    Returns void

callTimeout

  • callTimeout(): void
  • Returns void

callTry

  • Parameters

    • Default value returnValue: T = null

    Returns StiPromise<T>

catch

  • Parameters

    • catchFunction: Function
    • Default value _this: any = null

    Returns StiPromise<T>

finally

  • Parameters

    • finallyFunction: Function
    • Default value _this: any = null

    Returns StiPromise<T>

onAbort

  • onAbort(abortFunction: Function): void
  • Parameters

    Returns void

onBehindFunction

  • onBehindFunction(behindFunction: Function): void
  • Parameters

    Returns void

promise

  • promise(): Promise<T>
  • Returns Promise<T>

this

timeout

  • Parameters

    • timeout: number

    Returns StiPromise<T>

try

Static lock

  • lock(lockObject: any): Promise<void>
  • Parameters

    • lockObject: any

    Returns Promise<void>

Static unlock

  • unlock(lockObject: any): void
  • Parameters

    • lockObject: any

    Returns void

Generated using TypeDoc