@param {Promise } p
(p)
| 265 | return new Promise((fulfil) => { |
| 266 | /** @param {Promise<V>} p */ |
| 267 | function next(p) { |
| 268 | function go() { |
| 269 | if (p === promise) { |
| 270 | fulfil(signal); |
| 271 | } else { |
| 272 | // if the effect re-runs before the initial promise |
| 273 | // resolves, delay resolution until we have a value |
| 274 | next(promise); |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | p.then(go, go); |
| 279 | } |
| 280 | |
| 281 | next(promise); |
| 282 | }); |
no outgoing calls
no test coverage detected
searching dependent graphs…