@@ -234,13 +234,6 @@ export default class Backburner {
234234 return this . _join ( target , method , args ) ;
235235 }
236236
237- /**
238- * @deprecated please use schedule instead.
239- */
240- public defer ( queueName , targetOrMethod , ..._args ) {
241- return this . schedule ( queueName , targetOrMethod , ..._args ) ;
242- }
243-
244237 /**
245238 * Schedule the passed function to run inside the specified queue.
246239 */
@@ -266,13 +259,6 @@ export default class Backburner {
266259 return this . _ensureInstance ( ) . schedule ( queueName , null , iteratorDrain , [ iterable ] , false , stack ) ;
267260 }
268261
269- /**
270- * @deprecated please use scheduleOnce instead.
271- */
272- public deferOnce ( queueName , targetOrMethod , ...args ) {
273- return this . scheduleOnce ( queueName , targetOrMethod , ...args ) ;
274- }
275-
276262 /**
277263 * Schedule the passed function to run once inside the specified queue.
278264 */
@@ -285,14 +271,6 @@ export default class Backburner {
285271 return this . _ensureInstance ( ) . schedule ( queueName , target , method , args , true , stack ) ;
286272 }
287273
288- /**
289- * @deprecated use later instead.
290- */
291- public setTimeout ( ...args ) ;
292- public setTimeout ( ) {
293- return this . later ( ...arguments ) ;
294- }
295-
296274 public later ( ...args ) {
297275 let length = args . length ;
298276
@@ -552,7 +530,7 @@ export default class Backburner {
552530 return this . _cancelItem ( timer , this . _throttlers ) || this . _cancelItem ( timer , this . _debouncees ) ;
553531 } else if ( timerType === 'function' ) { // we're cancelling a setTimeout
554532 return this . _cancelLaterTimer ( timer ) ;
555- } else if ( timerType === 'object' && timer . queue && timer . method ) { // we're cancelling a deferOnce
533+ } else if ( timerType === 'object' && timer . queue && timer . method ) { // we're cancelling a scheduleOnce
556534 return timer . queue . cancel ( timer ) ;
557535 }
558536
0 commit comments