Answers for "typescript delay"

0

typescript delay

(async () => { 
        // Do something before delay
        console.log('before delay')

        await delay(1000);

        // Do something after
        console.log('after delay')
    })();

	setTimeout( () => { /*Your Code*/ }, Milliseconds );
    
	import { timer } from 'rxjs';
	await timer(1000).pipe(take(1)).toPromise();
Posted by: Guest on July-08-2021

Browse Popular Code Answers by Language