@@ -342,14 +342,6 @@ export default class Backburner {
342
342
return this . _join ( target , method , args ) ;
343
343
}
344
344
345
- /**
346
- * @deprecated please use schedule instead.
347
- */
348
- public defer ( queueName , target , method , ...args ) {
349
- deferCount ++ ;
350
- return this . schedule ( queueName , target , method , ...args ) ;
351
- }
352
-
353
345
/**
354
346
* Schedule the passed function to run inside the specified queue.
355
347
*/
@@ -377,14 +369,6 @@ export default class Backburner {
377
369
return this . _ensureInstance ( ) . schedule ( queueName , null , iteratorDrain , [ iterable ] , false , stack ) ;
378
370
}
379
371
380
- /**
381
- * @deprecated please use scheduleOnce instead.
382
- */
383
- public deferOnce ( queueName , target , method , ...args ) {
384
- deferOnceCount ++ ;
385
- return this . scheduleOnce ( queueName , target , method , ...args ) ;
386
- }
387
-
388
372
/**
389
373
* Schedule the passed function to run once inside the specified queue.
390
374
*/
@@ -398,15 +382,6 @@ export default class Backburner {
398
382
return this . _ensureInstance ( ) . schedule ( queueName , target , method , args , true , stack ) ;
399
383
}
400
384
401
- /**
402
- * @deprecated use later instead.
403
- */
404
- public setTimeout ( ...args ) ;
405
- public setTimeout ( ) {
406
- setTimeoutCount ++ ;
407
- return this . later ( ...arguments ) ;
408
- }
409
-
410
385
public later < T > ( ...args : any [ ] ) : Timer ; // fixes `this.later(...arguments)` usage in `setTimeout`
411
386
public later < T > ( target : T , methodName : keyof T , wait ?: number | string ) : Timer ;
412
387
public later < T > ( target : T , methodName : keyof T , arg1 : any , wait ?: number | string ) : Timer ;
@@ -554,7 +529,7 @@ export default class Backburner {
554
529
return this . _cancelItem ( timer , this . _throttlers ) || this . _cancelItem ( timer , this . _debouncees ) ;
555
530
} else if ( timerType === 'string' ) { // we're cancelling a setTimeout
556
531
return this . _cancelLaterTimer ( timer ) ;
557
- } else if ( timerType === 'object' && timer . queue && timer . method ) { // we're cancelling a deferOnce
532
+ } else if ( timerType === 'object' && timer . queue && timer . method ) { // we're cancelling a scheduleOnce
558
533
return timer . queue . cancel ( timer ) ;
559
534
}
560
535
0 commit comments