MCPcopy Create free account
hub / github.com/Effect-TS/effect / dropFetch

Function dropFetch

packages/effect/src/ui/Query.ts:5941–5947  ·  view source on GitHub ↗
(entry: Entry, fetch = entry.fetch ?? entry.live)

Source from the content-addressed store, hash-verified

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

Callers 9

removeEntryFunction · 0.85
startFetchFunction · 0.85
replaceFetchFunction · 0.85
abandonFetchFunction · 0.85
invalidateEntryFunction · 0.85
settleRunEntryFunction · 0.85
beginRunFunction · 0.85
dehydrateFunction · 0.85
buildCacheFunction · 0.85

Calls 3

drainKeyFunction · 0.85
setMethod · 0.65
interruptUnsafeMethod · 0.45

Tested by

no test coverage detected