Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

delay in javascript without await

const syncWait = ms => {
    const end = Date.now() + ms
    while (Date.now() < end) continue
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delay #javascript #await
ADD COMMENT
Topic
Name
2+7 =