()
| 186 | } |
| 187 | |
| 188 | async() { |
| 189 | if (this.error) return Promise.reject(this.error) |
| 190 | if (this.processed) return Promise.resolve(this.result) |
| 191 | if (!this.processing) { |
| 192 | this.processing = this.runAsync() |
| 193 | } |
| 194 | return this.processing |
| 195 | } |
| 196 | |
| 197 | catch(onRejected) { |
| 198 | return this.async().catch(onRejected) |
no test coverage detected