Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "transforms/debounce"

Index

Functions

Functions

debounce

  • Returns a Transform where items are only emitted if ms milliseconds pass without new a new emit by the source observable. If a new value is emitted, the “cooldown” is restarted and the old value is discarded.

    Type parameters

    • T

      Type of items emitted by the observable.

    Parameters

    • ms: number

      Milliseconds to wait before emitting an item.

    Returns Transform<T>

    Transform that emits some items from the original observable.

Generated using TypeDoc