Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FutureEmitter<T>

An emitter that allows push-based resolution.

Type parameters

  • T

    type of the value to be resolved by the Future.

Hierarchy

  • FutureEmitter

Index

Properties

failure

failure: function

Rejects the Computation instance with the given value.

param

The error to be rejected into.

Type declaration

    • (error: Error): void
    • Parameters

      • error: Error

      Returns void

isCancelled

isCancelled: function

Checks if the Computation instance is cancelled.

returns

The state of cancellation

Type declaration

    • (): boolean
    • Returns boolean

onCancel

onCancel: function

Registers a callback to be executed when the Computation instance gets cancelled downstream.

param

A callback function.

Type declaration

    • (callback: function): void
    • Parameters

      • callback: function
          • (): void
          • Returns void

      Returns void

success

success: function

Resolves the Computation instance with the given value.

param

The value to be resolved into.

Type declaration

    • (value: T): void
    • Parameters

      • value: T

      Returns void

Generated using TypeDoc