[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
1 changed files with 1 additions and 1 deletions

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) {
this._timeoutId = null; // Setup internal vars
this.fails = 0;