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

Function endShared

packages/effect/src/ui/Query.ts:6201–6208  ·  view source on GitHub ↗
(shared: Shared, exit: Exit.Exit<any, any>)

Source from the content-addressed store, hash-verified

6199 }
6200 /** Hands the exit to the callers. Nothing is stored and the entry doesn't change. */
6201 const endShared = (shared: Shared, exit: Exit.Exit<any, any>): void => {
6202 sharedFetches.delete(shared)
6203 if (shared.entry.shared === shared) shared.entry.shared = undefined
6204 const fiber = shared.fiber
6205 shared.fiber = undefined
6206 if (exit._tag === "Failure" && fiber !== undefined) fiber.interruptUnsafe()
6207 resumeAll(shared.callers, callerExit(exit))
6208 }
6209 const startShared = (
6210 entry: Entry,
6211 build: Build,

Callers 5

buildClosedFunction · 0.85
runSharedFunction · 0.85
leaveFunction · 0.85
dehydrateFunction · 0.85
buildCacheFunction · 0.85

Calls 4

resumeAllFunction · 0.85
callerExitFunction · 0.85
deleteMethod · 0.65
interruptUnsafeMethod · 0.45

Tested by

no test coverage detected