Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

delay in javascript


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