Skip to content

Commit

Permalink
Avoid changing Backburner.prototype.end API.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Jan 20, 2018
1 parent 3357ffc commit 84a04d7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default class Backburner {
if (this._autorun === null) { return; }

this._autorun = null;
this.end(true /* fromAutorun */);
this._end(true /* fromAutorun */);
};

let builder = this.options._buildPlatform || buildPlatform;
Expand Down Expand Up @@ -151,7 +151,11 @@ export default class Backburner {
return current;
}

public end(fromAutorun = false) {
public end() {
this._end(false);
}

private _end(fromAutorun: boolean) {
let currentInstance = this.currentInstance;
let nextInstance: DeferredActionQueues | null = null;

Expand Down

0 comments on commit 84a04d7

Please sign in to comment.