Spec-Zone.ru › Angular

debounced

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

Debouncing signals with debounced

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.

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/debounced

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API