Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ValueAndUpdates<T>

A read only wrapper around DefaultValueProducer that allows to synchonously get the current value using the .value property and listen to to updates by suscribing to the .updates stream

Type parameters

  • T

Hierarchy

  • ValueAndUpdates

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

updates

updates: MemoryStream<T>

Accessors

value

  • get value(): T

Methods

waitFor

  • Resolves as soon as search value is found.

    Parameters

    • search: SearchFunction<T> | T

      either a value or a function that must return true when found

    Returns Promise<T>

    the value of the update that caused the search match

Generated using TypeDoc