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

Function makeLogger

packages/effect/test/Effect/finalization.test.ts:212–216  ·  view source on GitHub ↗
(ref: Ref.Ref<Chunk.Chunk<string>>)

Source from the content-addressed store, hash-verified

210 it.live("acquireUseRelease regression 1", () =>
211 Effect.gen(function*() {
212 const makeLogger = (ref: Ref.Ref<Chunk.Chunk<string>>) => {
213 return (line: string): Effect.Effect<void> => {
214 return Ref.update(ref, Chunk.prepend(line))
215 }
216 }
217 const ref = yield* (Ref.make(Chunk.empty<string>()))
218 const log = makeLogger(ref)
219 const fiber = yield* pipe(

Callers 1

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected