Options
All
  • Public
  • Public/Protected
  • All
Menu

The result of a task invocation. Asynchronously fetched.

Type parameters

  • T

Hierarchy

  • Result

Index

Constructors

Methods

Constructors

constructor

  • Will immediately begin waiting for the result to be fetched.

    Parameters

    • taskId: string

      UUID of the task whose result we are requesting.

    • backend: ResultBackend

      The backend to receive the result on.

    Returns Result

    A Result that will fetch from backend when possible.

Methods

delete

  • delete(): Promise<string>
  • Deletes the result from the backend. If the result has not been received yet, will immediately discard it.

    Returns Promise<string>

    A Promise that resolves to the response of the result backend.

get

  • get(timeout?: undefined | number): Promise<T>
  • Fetches the result from the backend. May resolve immediately if the result was already fetched after the transaction was queued up in the constructor.

    Parameters

    • Optional timeout: undefined | number

      The duration to wait, in milliseconds, before rejecting the Promise. If undefined, will not set a timeout.

    Returns Promise<T>

    A Promise that will resolve to the result of the task after it is fetched from the backend.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc