Skip to content

Instantly share code, notes, and snippets.

@ralfting
Last active September 6, 2019 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralfting/b38b53d1cdec087d3d4b52bdb639b560 to your computer and use it in GitHub Desktop.
Save ralfting/b38b53d1cdec087d3d4b52bdb639b560 to your computer and use it in GitHub Desktop.
debounce = (): Promise<void> => {
const TIME = 3000;
return new Promise((resolve) => {
setTimeout(resolve, TIME);
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment