I\'m developing a website in Angular 2 using Typescript and I was wondering if there was a way to implement thread.sleep(ms) functionality.
thread.sleep(ms)
My use case
import { timer } from 'rxjs'; await timer(1000).pipe(take(1)).toPromise();
this works better for me