@@ -122,9 +122,9 @@ export default class Backburner {
122122 @return instantiated class DeferredActionQueues
123123 */
124124 public begin ( ) : DeferredActionQueues {
125- let options = this . options ;
126125 let previousInstance = this . currentInstance ;
127126 let current ;
127+ let options = this . options ;
128128
129129 if ( this . _autorun !== null ) {
130130 current = previousInstance ;
@@ -236,14 +236,6 @@ export default class Backburner {
236236 return this . _join ( target , method , args ) ;
237237 }
238238
239- /**
240- * @deprecated please use schedule instead.
241- */
242- public defer ( queueName : string , ...args ) ;
243- public defer ( ) {
244- return this . schedule ( ...arguments ) ;
245- }
246-
247239 /**
248240 * Schedule the passed function to run inside the specified queue.
249241 */
@@ -270,14 +262,6 @@ export default class Backburner {
270262 return this . _ensureInstance ( ) . schedule ( queueName , null , iteratorDrain , [ iterable ] , false , stack ) ;
271263 }
272264
273- /**
274- * @deprecated please use scheduleOnce instead.
275- */
276- public deferOnce ( queueName : string , ...args ) ;
277- public deferOnce ( ) {
278- return this . scheduleOnce ( ...arguments ) ;
279- }
280-
281265 /**
282266 * Schedule the passed function to run once inside the specified queue.
283267 */
@@ -291,14 +275,6 @@ export default class Backburner {
291275 return this . _ensureInstance ( ) . schedule ( queueName , target , method , args , true , stack ) ;
292276 }
293277
294- /**
295- * @deprecated use later instead.
296- */
297- public setTimeout ( ...args ) ;
298- public setTimeout ( ) {
299- return this . later ( ...arguments ) ;
300- }
301-
302278 public later ( )
303279 public later ( ...args ) {
304280 let length = args . length ;
@@ -489,7 +465,7 @@ export default class Backburner {
489465 return this . _cancelItem ( timer , this . _throttlers ) || this . _cancelItem ( timer , this . _debouncees ) ;
490466 } else if ( timerType === 'function' ) { // we're cancelling a setTimeout
491467 return this . _cancelLaterTimer ( timer ) ;
492- } else if ( timerType === 'object' && timer . queue && timer . method ) { // we're cancelling a deferOnce
468+ } else if ( timerType === 'object' && timer . queue && timer . method ) { // we're cancelling a scheduleOnce
493469 return timer . queue . cancel ( timer ) ;
494470 }
495471
0 commit comments