(evolvePromise, logFn = console.error)
| 498 | } |
| 499 | |
| 500 | function observeTimedOutEvolvePromise(evolvePromise, logFn = console.error) { |
| 501 | if (!evolvePromise || typeof evolvePromise.then !== 'function') { |
| 502 | return { status: 'ignored' }; |
| 503 | } |
| 504 | |
| 505 | Promise.resolve(evolvePromise).then( |
| 506 | function () {}, |
| 507 | function (error) { |
| 508 | logTimedOutEvolveRejection(error, logFn); |
| 509 | } |
| 510 | ); |
| 511 | |
| 512 | return { status: 'observing' }; |
| 513 | } |
| 514 | |
| 515 | async function waitForTimedOutEvolvePromise(evolvePromise, logFn = console.error) { |
| 516 | if (!evolvePromise || typeof evolvePromise.then !== 'function') { |
nothing calls this directly
no test coverage detected