Sleep
await this.sleep();
sleep() {
return new Promise<void>((resolve, reject) => {
setTimeout(() => {
resolve();
}, 1000);
});
}
await this.sleep();
sleep() {
return new Promise<void>((resolve, reject) => {
setTimeout(() => {
resolve();
}, 1000);
});
}