@creejs/commons-retrier 2.1.8 → 2.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,9 +55,9 @@ export default class Retrier {
55
55
  name(retrierName: string): this;
56
56
  /**
57
57
  * Sets the retry attempts to be infinite by setting max retries to maximum safe integer.
58
- * @returns {Object} The retrier instance for chaining.
58
+ * @returns {this} The retrier instance for chaining.
59
59
  */
60
- infinite(): Object;
60
+ infinite(): this;
61
61
  /**
62
62
  * Sets the maximum number of retry attempts.
63
63
  * @param {number} times - The maximum number of retries.
@@ -140,17 +140,22 @@ export default class Retrier {
140
140
  * Sets the timeout duration for each Task execution.
141
141
  * 1. must > 0
142
142
  * @param {number} timeout - The timeout duration in milliseconds.
143
- * @returns {Object} The retrier instance for chaining.
143
+ * @returns {this} The retrier instance for chaining.
144
144
  */
145
- taskTimeout(timeout: number): Object;
145
+ taskTimeout(timeout: number): this;
146
146
  /**
147
147
  * Sets the timeout duration for all retries.
148
148
  * 1. <= 0 - no timeout
149
149
  * 2. \> 0 - timeout duration in milliseconds
150
150
  * @param {number} timeout - The timeout duration in milliseconds.
151
- * @returns {Object} The retrier instance for chaining.
151
+ * @returns {this} The retrier instance for chaining.
152
+ */
153
+ timeout(timeout: number): this;
154
+ /**
155
+ * Disables the timeout for the retrier.
156
+ * @returns {this} The retrier instance for chaining.
152
157
  */
153
- timeout(timeout: number): Object;
158
+ notimeout(): this;
154
159
  /**
155
160
  * Sets the task function to be retried.
156
161
  * @param {Function} task - The function to be executed and retried on failure.