MCPcopy Index your code
hub / github.com/Effect-TS/effect / handler

Function handler

packages/effect/src/internal/stream.ts:4269–4274  ·  view source on GitHub ↗
(terminate: boolean)

Source from the content-addressed store, hash-verified

4267 const strategy = options.haltStrategy ? haltStrategy.fromInput(options.haltStrategy) : HaltStrategy.Both
4268 const handler =
4269 (terminate: boolean) =>
4270 (exit: Exit.Exit<unknown, E | E2>): MergeDecision.MergeDecision<R | R2, E | E2, unknown, E | E2, unknown> =>
4271 terminate || !Exit.isSuccess(exit) ?
4272 // TODO: remove
4273 MergeDecision.Done(Effect.suspend(() => exit)) :
4274 MergeDecision.Await((exit) => Effect.suspend(() => exit))
4275
4276 return new StreamImpl<A3 | A4, E | E2, R | R2>(
4277 channel.mergeWith(toChannel(map(self, options.onSelf)), {

Callers 4

fiberRuntime.tsFile · 0.70
stream.tsFile · 0.70
getMatcherFunction · 0.50
Pretty.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…