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

Function revert

packages/effect/src/ui/Query.ts:6047–6056  ·  view source on GitHub ↗
(entry: Entry)

Source from the content-addressed store, hash-verified

6045 * freshness included. Only a defect marks the previous Success stale.
6046 */
6047 const revert = (entry: Entry): void => {
6048 entry.kept = false
6049 entry.target = undefined
6050 entry.owed = undefined
6051 resumeAll(entry.waiters, Exit.interrupt())
6052 resumeAll(entry.moreWaiters, Exit.interrupt())
6053 emit(entry)
6054 rearmInterval(entry)
6055 afterQuiet(entry)
6056 }
6057 const onFetchExit = (
6058 entry: Entry,
6059 fetch: FetchRec,

Callers 2

replaceFetchFunction · 0.85
abandonFetchFunction · 0.85

Calls 5

resumeAllFunction · 0.85
rearmIntervalFunction · 0.85
afterQuietFunction · 0.85
emitFunction · 0.70
interruptMethod · 0.45

Tested by

no test coverage detected