()
| 42 | } |
| 43 | |
| 44 | #clone() { |
| 45 | return new ExponentialBackoff(this.#type, { |
| 46 | base: this.#base, |
| 47 | factor: this.#factor, |
| 48 | min: this.#min, |
| 49 | max: this.#max, |
| 50 | maxRetries: this.#maxRetries, |
| 51 | maxElapsed: this.#maxElapsed, |
| 52 | }); |
| 53 | } |
| 54 | |
| 55 | type(type?: ExponentialBackoffType) { |
| 56 | if (typeof type !== "undefined") { |
no outgoing calls
no test coverage detected