perf: add async
This commit is contained in:
		| @@ -37,7 +37,7 @@ export class NotificationComponent { | |||||||
|  |  | ||||||
|   private startProgress(duration: number): void { |   private startProgress(duration: number): void { | ||||||
|     const interval: number = duration / 100; |     const interval: number = duration / 100; | ||||||
|     const progressInterval = setInterval(() => { |     const progressInterval = setInterval(async () => { | ||||||
|       this.progress--; |       this.progress--; | ||||||
|       if (this.progress === 0) { |       if (this.progress === 0) { | ||||||
|         clearInterval(progressInterval); |         clearInterval(progressInterval); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user