MCPcopy Create free account
hub / github.com/effect-app/libs / saveAll

Function saveAll

packages/effect-app/src/Model/Repository/internal/internal.ts:258–263  ·  view source on GitHub ↗
(a: Iterable<T>)

Source from the content-addressed store, hash-verified

256
257 const pub = "publishEvents" in args
258 ? args.publishEvents
259 : () => Effect.void
260
261 type ChangeFeedHandler = (evt: ChangeFeedEvent<T>) => Effect.Effect<void>
262 const changeFeedByNamespace = yield* Ref.make(HashMap.empty<string, HashSet.HashSet<ChangeFeedHandler>>())
263 const changeFeedWildcard = yield* Ref.make(HashSet.empty<ChangeFeedHandler>())
264 // clear all handlers when the repository's scope closes
265 yield* Effect.addFinalizer(() =>
266 Effect.all([

Callers 1

makeFunction · 0.85

Calls 1

pipeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…