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

Function onInterruptSignal

packages/effect/src/internal/fiberRuntime.ts:2266–2273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2264 return fiber
2265 }
2266 const onInterruptSignal = () => {
2267 if (!processAll) {
2268 target -= todos.length
2269 todos = []
2270 }
2271 interrupted = true
2272 interruptAll()
2273 }
2274 const stepOrExit = batching ? core.step : core.exit
2275 const processingFiber = runFiber(
2276 core.async<any, any, any>((resume) => {

Callers 2

pushResultFunction · 0.85
forEachConcurrentDiscardFunction · 0.85

Calls 1

interruptAllFunction · 0.70

Tested by

no test coverage detected