(...args: any[])
| 220 | } |
| 221 | |
| 222 | run(...args: any[]) { |
| 223 | const deferFn = this.props.deferFn || defaultOptions.deferFn |
| 224 | if (deferFn) { |
| 225 | this.args = args |
| 226 | const props = { ...defaultOptions, ...this.props } |
| 227 | return this.start(() => deferFn(args, props, this.abortController)).then( |
| 228 | this.onResolve(this.counter), |
| 229 | this.onReject(this.counter) |
| 230 | ) |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | cancel() { |
| 235 | const onCancel = this.props.onCancel || defaultOptions.onCancel |
no test coverage detected