File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,10 @@ export class ADI implements DAP {
70
70
* Continually run a function until it returns true
71
71
* @param fn The function to run
72
72
* @param timeout Optional timeout to wait before giving up and throwing
73
- * @param timer The milliseconds to wait between each run
73
+ * @param delay The milliseconds to wait between each run
74
74
* @returns Promise
75
75
*/
76
- protected async waitDelay ( fn : ( ) => Promise < boolean > , timeout : number = 0 , timer : number = DEFAULT_WAIT_DELAY ) : Promise < void > {
76
+ protected async waitDelay ( fn : ( ) => Promise < boolean > , timeout : number = 0 , delay : number = DEFAULT_WAIT_DELAY ) : Promise < void > {
77
77
let running = true ;
78
78
79
79
if ( timeout > 0 ) {
@@ -92,8 +92,8 @@ export class ADI implements DAP {
92
92
return ;
93
93
}
94
94
95
- if ( timer > 0 ) {
96
- await new Promise ( resolve => setTimeout ( resolve , timeout ) ) ;
95
+ if ( delay > 0 ) {
96
+ await new Promise ( resolve => setTimeout ( resolve , delay ) ) ;
97
97
}
98
98
}
99
99
}
You can’t perform that action at this time.
0 commit comments