async function timer (seconds) {
return new Promise(resolve => setTimeout(resolve, seconds * 1000))
}
// Usage
...
await timer(0.5)
...
Last active
April 12, 2021 01:46
-
-
Save vijaywm/d0bc38a0b4f7ab20cb9b7c42a1559b5b to your computer and use it in GitHub Desktop.
Js hacks for Frappe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment