[Backoff] Add short explaination of class with comment
This commit is contained in:
parent
466d3f9083
commit
a0f7481ad5
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
module.exports = class Backoff {
|
module.exports = class Backoff { // Internal library / utility for a class to retry a callback with delays, etc.
|
||||||
constructor(min = 500, max = null) {
|
constructor(min = 500, max = null) {
|
||||||
this._timeoutId = null; // Setup internal vars
|
this._timeoutId = null; // Setup internal vars
|
||||||
this.fails = 0;
|
this.fails = 0;
|
||||||
|
|
Loading…
Reference in a new issue