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

Function emit

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

Source from the content-addressed store, hash-verified

3917 Effect.suspend(() => {
3918 const outputs: Array<A2> = []
3919 const emit = (output: A2) =>
3920 Effect.sync(() => {
3921 outputs.push(output)
3922 })
3923 return pipe(
3924 input,
3925 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