()
| 373 | } |
| 374 | |
| 375 | pull(): RpcPayload | Promise<RpcPayload> { |
| 376 | let entry = this.getEntry(); |
| 377 | |
| 378 | if (!this.isPromise) { |
| 379 | throw new Error("Can't pull this hook because it's not a promise hook."); |
| 380 | } |
| 381 | |
| 382 | if (entry.resolution) { |
| 383 | return entry.resolution.pull(); |
| 384 | } |
| 385 | |
| 386 | return entry.awaitResolution(); |
| 387 | } |
| 388 | |
| 389 | ignoreUnhandledRejections(): void { |
| 390 | // We don't actually have to do anything here because this method only has to ignore rejections |
no test coverage detected