Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node sleep

await sleep(1000)
const sleep = (ms: number) => {
  return new Promise((resolve) => {
    setTimeout(resolve, ms);
  });
} 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #node #sleep
ADD COMMENT
Topic
Name
3+9 =