@@ -31,7 +31,7 @@ export interface IWatchLoopOptions {
31
31
/**
32
32
* Logging callback when a run is requested (and hasn't already been).
33
33
*/
34
- onRequestRun : ( requester : string ) => void ;
34
+ onRequestRun : ( requestor : string ) => void ;
35
35
/**
36
36
* Logging callback when a run is aborted.
37
37
*/
@@ -45,7 +45,7 @@ export interface IWatchLoopOptions {
45
45
*/
46
46
export interface IWatchLoopState {
47
47
get abortSignal ( ) : AbortSignal ;
48
- requestRun : ( requester : string ) => void ;
48
+ requestRun : ( requestor : string ) => void ;
49
49
}
50
50
51
51
/**
@@ -60,7 +60,7 @@ export class WatchLoop implements IWatchLoopState {
60
60
private _isRunning : boolean ;
61
61
private _runRequested : boolean ;
62
62
private _requestRunPromise : Promise < string | undefined > ;
63
- private _resolveRequestRun ! : ( requester : string ) => void ;
63
+ private _resolveRequestRun ! : ( requestor : string ) => void ;
64
64
65
65
public constructor ( options : IWatchLoopOptions ) {
66
66
this . _options = options ;
@@ -147,7 +147,7 @@ export class WatchLoop implements IWatchLoopState {
147
147
}
148
148
}
149
149
150
- function requestRunFromHost ( requester : string ) : void {
150
+ function requestRunFromHost ( requestor : string ) : void {
151
151
if ( runRequestedFromHost ) {
152
152
return ;
153
153
}
@@ -156,7 +156,7 @@ export class WatchLoop implements IWatchLoopState {
156
156
157
157
const requestRunMessage : IRequestRunEventMessage = {
158
158
event : 'requestRun' ,
159
- requester
159
+ requestor
160
160
} ;
161
161
162
162
tryMessageHost ( requestRunMessage ) ;
@@ -228,16 +228,16 @@ export class WatchLoop implements IWatchLoopState {
228
228
/**
229
229
* Requests that a new run occur.
230
230
*/
231
- public requestRun : ( requester : string ) => void = ( requester : string ) => {
231
+ public requestRun : ( requestor : string ) => void = ( requestor : string ) => {
232
232
if ( ! this . _runRequested ) {
233
- this . _options . onRequestRun ( requester ) ;
233
+ this . _options . onRequestRun ( requestor ) ;
234
234
this . _runRequested = true ;
235
235
if ( this . _isRunning ) {
236
236
this . _options . onAbort ( ) ;
237
237
this . _abortCurrent ( ) ;
238
238
}
239
239
}
240
- this . _resolveRequestRun ( requester ) ;
240
+ this . _resolveRequestRun ( requestor ) ;
241
241
} ;
242
242
243
243
/**
0 commit comments