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

Function runForEach

packages/effect/test/ui/QueryHydration.test.ts:768–770  ·  view source on GitHub ↗
(f: (a: A) => void)

Source from the content-addressed store, hash-verified

766
767// `Stream.runForEach` with a synchronous callback.
768function runForEach<A>(f: (a: A) => void) {
769 return <E, R>(self: Stream.Stream<A, E, R>) => Stream.runForEach(self, (a) => Effect.sync(() => f(a)))
770}

Callers 2

Channel.tsFile · 0.85

Calls 2

fFunction · 0.50
syncMethod · 0.45

Tested by

no test coverage detected