Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "transforms/sample"

Index

Functions

Functions

sample

  • Emits the most recently emitted value from the Observable whenever the notifier emits. If no new value has been emitted from the source observable since the last time the notifier emitted, nothing will be emitted.

    Type parameters

    • T

      Type of items emitted by the observable.

    Parameters

    • notifier: Observable<unknown>

      Observable that triggers the sampling of the source observable.

    Returns Transform<T, T>

    Transform that emits whenever the notifier emits, provided the source observable has emitted a new value in the mean time.

Generated using TypeDoc