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

Function halt

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

Source from the content-addressed store, hash-verified

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

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