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

Function emit

packages/effect/src/internal/stream.ts:3881–3884  ·  view source on GitHub ↗
(output: A2)

Source from the content-addressed store, hash-verified

3879 Effect.suspend(() => {
3880 const outputs: Array<A2> = []
3881 const emit = (output: A2) =>
3882 Effect.sync(() => {
3883 outputs.push(output)
3884 })
3885 return pipe(
3886 input,
3887 Effect.reduce(s, (s, a) =>

Callers 2

accumulatorFunction · 0.70
async.test.tsFile · 0.50

Calls 1

syncMethod · 0.80

Tested by

no test coverage detected