• Overview
@angular/core

Creates a resource representing a debounced version of the source signal.

API

function debounced<T>(
  source: () => T,
  wait: NoInfer<DebounceTimer<T>>,
  options?: NoInfer<DebouncedOptions<T>> | undefined,
): Resource<T>;
@paramsource() => T

The source signal to debounce.

@paramwaitNoInfer<DebounceTimer<T>>

The amount of time to wait before calling the source signal, or a function that returns a promise that resolves when the debounced value should be updated.

@paramoptionsNoInfer<DebouncedOptions<T>> | undefined

The options to use for the debounced signal.

@returnsResource<T>

A resource representing the debounced signal.

Jump to details