Options
All
  • Public
  • Public/Protected
  • All
Menu

A read only wrapper around DefaultValueProducer that allows to synchronously 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

Properties

updates: MemoryStream<T>

Accessors

  • get value(): T

Methods

  • waitFor(search: T | SearchFunction<T>): Promise<T>
  • Resolves as soon as search value is found.

    Parameters

    • search: T | SearchFunction<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