Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript sleep

function delay(ms: number) {
    return new Promise( resolve => setTimeout(resolve, ms) );
}

await delay(300);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #sleep
ADD COMMENT
Topic
Name
8+2 =