Skip to content

Instantly share code, notes, and snippets.

@vijaywm
Last active April 12, 2021 01:46
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 vijaywm/d0bc38a0b4f7ab20cb9b7c42a1559b5b to your computer and use it in GitHub Desktop.
Save vijaywm/d0bc38a0b4f7ab20cb9b7c42a1559b5b to your computer and use it in GitHub Desktop.
Js hacks for Frappe
async function timer (seconds) {
  return new Promise(resolve => setTimeout(resolve, seconds * 1000))
}

// Usage

...
await timer(0.5)
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment