* @param {*} opts * @return {*} * @inner
(opts)
| 240 | * @inner |
| 241 | */ |
| 242 | retry(opts) { |
| 243 | if (!promise) return |
| 244 | |
| 245 | if (opts === null) { |
| 246 | opts = {} |
| 247 | } |
| 248 | if (Number.isInteger(opts)) { |
| 249 | opts = { retries: opts } |
| 250 | } |
| 251 | // Push retry options immediately so first step can see them |
| 252 | this.retries.push(opts) |
| 253 | return Promise.resolve() |
| 254 | }, |
| 255 | |
| 256 | /** |
| 257 | * @param {function} [customErrFn] |
no test coverage detected