[Backoff] Add short explaination of class with comment

This commit is contained in:
Ducko 2021-12-11 22:15:23 +00:00
parent 466d3f9083
commit a0f7481ad5

View file

@ -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;