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

Function saveManyWithPure

packages/effect-app/src/Model/Repository/ext.ts:201–212  ·  view source on GitHub ↗
(items, pure, batch?: "batched" | number)

Source from the content-addressed store, hash-verified

199 items: Iterable<S1>,
200 pure: Effect.Effect<A, E, FixEnv<R, Evt, readonly S1[], readonly S2[]>>,
201 batch: "batched" | number
202 ): Effect.Effect<
203 A[],
204 PureStoreError | E,
205 | RSchema
206 | RPublish
207 | Exclude<R, {
208 env: PureEnv<Evt, readonly S1[], readonly S2[]>
209 }>
210 >
211 } = ((items: Iterable<T>, pure: any, batch?: "batched" | number) =>
212 batch
213 ? Effect.forEach(
214 Array.chunksOf([...items], batch === "batched" ? 100 : batch),
215 (batchItems) =>

Callers

nothing calls this directly

Calls 3

runTermFunction · 0.90
saveAllWithEffectIntFunction · 0.85
forEachMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…