MCPcopy
hub / github.com/Effect-TS/effect / halt

Function halt

packages/effect/src/internal/stream/emit.ts:40–42  ·  view source on GitHub ↗
(this: Emit.Emit<R, E, A, B>, cause: Cause.Cause<E>)

Source from the content-addressed store, hash-verified

38 return this(pipe(effect, Effect.mapError(Option.some)))
39 },
40 halt(this: Emit.Emit<R, E, A, B>, cause: Cause.Cause<E>) {
41 return this(Effect.failCause(pipe(cause, Cause.map(Option.some))))
42 },
43 single(this: Emit.Emit<R, E, A, B>, value: A) {
44 return this(Effect.succeed(Chunk.of(value)))
45 }

Callers

nothing calls this directly

Calls 4

failCauseMethod · 0.80
doneFunction · 0.70
mapMethod · 0.65
pipeFunction · 0.50

Tested by

no test coverage detected