MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / debounce

Function debounce

packages/utilities/src/debounce.ts:3–9  ·  view source on GitHub ↗
(
  callback: T,
  delay?: number,
  options?: any
)

Source from the content-addressed store, hash-verified

1import debouncePromise from 'awesome-debounce-promise';
2
3export default function debounce<T extends (...args: any[]) => any>(
4 callback: T,
5 delay?: number,
6 options?: any
7) {
8 return debouncePromise(callback, delay || 250, options || { leading: true });
9}

Callers 11

analyticsMiddlewareFunction · 0.85
ChannelsViewFunction · 0.85
BrandingViewFunction · 0.85
ConfigurationsViewFunction · 0.85
DesktopNavBarFunction · 0.85
AutocompleteFunction · 0.85
ContentFunction · 0.85
ChannelViewFunction · 0.85
ChannelFunction · 0.85
ChannelFunction · 0.85
ChannelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected