@@ -342,14 +342,6 @@ export default class Backburner {
342342 return this . _join ( target , method , args ) ;
343343 }
344344
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-
353345 /**
354346 * Schedule the passed function to run inside the specified queue.
355347 */
@@ -377,14 +369,6 @@ export default class Backburner {
377369 return this . _ensureInstance ( ) . schedule ( queueName , null , iteratorDrain , [ iterable ] , false , stack ) ;
378370 }
379371
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-
388372 /**
389373 * Schedule the passed function to run once inside the specified queue.
390374 */
@@ -398,15 +382,6 @@ export default class Backburner {
398382 return this . _ensureInstance ( ) . schedule ( queueName , target , method , args , true , stack ) ;
399383 }
400384
401- /**
402- * @deprecated use later instead.
403- */
404- public setTimeout ( ...args ) ;
405- public setTimeout ( ) {
406- setTimeoutCount ++ ;
407- return this . later ( ...arguments ) ;
408- }
409-
410385 public later < T > ( ...args : any [ ] ) : Timer ; // fixes `this.later(...arguments)` usage in `setTimeout`
411386 public later < T > ( target : T , methodName : keyof T , wait ?: number | string ) : Timer ;
412387 public later < T > ( target : T , methodName : keyof T , arg1 : any , wait ?: number | string ) : Timer ;
@@ -554,7 +529,7 @@ export default class Backburner {
554529 return this . _cancelItem ( timer , this . _throttlers ) || this . _cancelItem ( timer , this . _debouncees ) ;
555530 } else if ( timerType === 'string' ) { // we're cancelling a setTimeout
556531 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
558533 return timer . queue . cancel ( timer ) ;
559534 }
560535
0 commit comments