Answers for "typescript sleep"

2

typescript sleep

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

await delay(300);
Posted by: Guest on April-26-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language