@@ -286,12 +286,12 @@ clearInterval(interval);
286
286
** Create** a new interval dynamically using the ` SchedulerRegistry.addInterval() ` method, as follows:
287
287
288
288
``` typescript
289
- addInterval (name : string , seconds : string ) {
289
+ addInterval (name : string , milliseconds : number ) {
290
290
const callback = () => {
291
- this .logger .warn (` Interval ${name } executing at time (${seconds })! ` );
291
+ this .logger .warn (` Interval ${name } executing at time (${milliseconds })! ` );
292
292
};
293
293
294
- const interval = setInterval (callback , seconds );
294
+ const interval = setInterval (callback , milliseconds );
295
295
this .scheduler .addInterval (name , interval );
296
296
}
297
297
```
@@ -335,12 +335,12 @@ clearTimeout(timeout);
335
335
** Create** a new timeout dynamically using the ` SchedulerRegistry.addTimeout() ` method, as follows:
336
336
337
337
``` typescript
338
- addTimeout (name : string , seconds : string ) {
338
+ addTimeout (name : string , milliseconds : number ) {
339
339
const callback = () => {
340
- this .logger .warn (` Timeout ${name } executing after (${seconds })! ` );
340
+ this .logger .warn (` Timeout ${name } executing after (${milliseconds })! ` );
341
341
};
342
342
343
- const timeout = setTimeout (callback , seconds );
343
+ const timeout = setTimeout (callback , milliseconds );
344
344
this .scheduler .addTimeout (name , timeout );
345
345
}
346
346
```
0 commit comments