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

Function interrupted

packages/sql/pg/test/utils.ts:43–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 const pending = setInterval(() => log("pending"), 5_000)
42 pending.unref()
43 const interrupted = () => {
44 clearInterval(pending)
45 log("interrupted")
46 }
47 signal?.addEventListener("abort", interrupted, { once: true })
48 try {
49 const value = await run()

Callers

nothing calls this directly

Calls 1

logFunction · 0.70

Tested by

no test coverage detected