Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultValueProducer<T>

Type parameters

  • T

Hierarchy

  • DefaultValueProducer

Implements

  • Producer<T>

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

value

  • get value(): T

Methods

error

  • error(error: any): void

start

  • start(listener: Listener<T>): void
  • Called by the stream. Do not call this directly.

    Parameters

    • listener: Listener<T>

    Returns void

stop

  • stop(): void

update

  • update(value: T): void
  • Update the current value.

    If producer is active (i.e. someone is listening), this emits an event. If not, just the current value is updated.

    Parameters

    • value: T

    Returns void

Generated using TypeDoc