(entry: Entry, fetch = entry.fetch ?? entry.live)
| 5939 | * the build's close and the cache's disposal wait for that. The caller restarts or reverts. |
| 5940 | */ |
| 5941 | const dropFetch = (entry: Entry, fetch = entry.fetch ?? entry.live): void => { |
| 5942 | entry.fetch = undefined |
| 5943 | entry.live = undefined |
| 5944 | if (fetch?.fiber === undefined) return |
| 5945 | draining.set(drainKey(entry), fetch.fiber) |
| 5946 | fetch.fiber.interruptUnsafe() |
| 5947 | } |
| 5948 | /** |
| 5949 | * One fetch per entry: a caller that finds one in flight joins it. Under a |
| 5950 | * live patch nothing fetches, and the first trigger is kept for the check |
no test coverage detected