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

Function single

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

Source from the content-addressed store, hash-verified

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 }
46 }
47 return Object.assign(emit, ops)
48}

Callers 1

onDecisionFunction · 0.50

Calls 2

ofMethod · 0.65
scheduleTaskMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…