Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Future<T>

Type parameters

  • T

Hierarchy

  • Future

Index

Properties

error

error: any

isComplete

isComplete: boolean

isError

isError: boolean

value

value: T

Methods

onComplete

  • onComplete(listener: function): Future<T>

onError

  • onError(listener: function): Future<T>

onProgress

  • onProgress(listener: function): Future<T>
  • Parameters

    • listener: function
        • (bytesLoaded: number, bytesTotal: number): void
        • Parameters

          • bytesLoaded: number
          • bytesTotal: number

          Returns void

    Returns Future<T>

ready

  • ready(waitTime?: number): Future<T>

result

  • result(waitTime?: number): T | null

then

  • then<U>(next: function): Future<U>

Static withError

  • withError(error: any): Future<any>

Static withValue

  • withValue<T>(value: T): Future<T>

Generated using TypeDoc