Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

setTimeout with await js

function timeout(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #setTimeout #await #js
ADD COMMENT
Topic
Name
5+5 =