Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RnPromise<T>

Type Parameters

  • T

Hierarchy

  • Promise<T>
    • RnPromise

Index

Constructors

  • new RnPromise<T>(promise: Promise<T>): RnPromise<T>
  • new RnPromise<T>(fn: PromiseFn<T>): RnPromise<T>

Properties

__callback?: Function
__callbackObj: RnPromiseCallbackObj = ...
__promise: Promise<undefined | T>
name: string = ''

Methods

  • finally(onFinally?: OnFinallyFn): Promise<T>
  • then<TResult1, TResult2>(onfulfilled?: null | ((value: T) => TResult1 | PromiseLike<TResult1>), onrejected?: null | ((reason: any) => TResult2 | PromiseLike<TResult2>)): RnPromise<TResult1 | TResult2>
  • Type Parameters

    • TResult1 = T

    • TResult2 = never

    Parameters

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

    Returns RnPromise<TResult1 | TResult2>

  • resolve<T>(): Promise<T>
  • resolve<T>(arg: T | PromiseLike<T>): Promise<T>

Generated using TypeDoc