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

Function cancelPending

packages/effect/src/ui/Query.ts:4483–4490  ·  view source on GitHub ↗
(all: boolean)

Source from the content-addressed store, hash-verified

4481 }
4482
4483 const cancelPending = (all: boolean): void => {
4484 swept = true
4485 for (const [tuple, entry] of memo) {
4486 if (entry._tag === "Pending" && (all || entry.waiters === 0)) {
4487 cancel(tuple, entry)
4488 }
4489 }
4490 }
4491
4492 const inlineTuple = (def: QueryDef, tuple: unknown): unknown => {
4493 if (

Callers

nothing calls this directly

Calls 1

cancelFunction · 0.70

Tested by

no test coverage detected