Skip to content

Instantly share code, notes, and snippets.

@LennonSantos
Created April 23, 2023 20:52
Show Gist options
  • Save LennonSantos/f43dba2cac8b81d7ca32f703ab74702c to your computer and use it in GitHub Desktop.
Save LennonSantos/f43dba2cac8b81d7ca32f703ab74702c to your computer and use it in GitHub Desktop.
// function delay example
function delay(time = 2500) {
return new Promise((resolve) => {
setTimeout(resolve, time)
})
}
// await delay()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment