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

Function single

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

Source from the content-addressed store, hash-verified

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

Callers 1

onDecisionFunction · 0.50

Calls 2

ofMethod · 0.65
unsafeOfferMethod · 0.65

Tested by

no test coverage detected