MCPcopy
hub / github.com/Effect-TS/effect / getAllUserNamesPipedN

Function getAllUserNamesPipedN

packages/effect/test/Effect/query.test.ts:81–85  ·  view source on GitHub ↗
(concurrency: Concurrency)

Source from the content-addressed store, hash-verified

79 )
80
81export const getAllUserNamesPipedN = (concurrency: Concurrency) =>
82 getAllUserIds.pipe(
83 Effect.flatMap(Effect.forEach(getUserNameById, { concurrency, batching: true })),
84 Effect.onInterrupt(() => FiberRef.getWith(interrupts, (i) => Effect.sync(() => i.interrupts++)))
85 )
86
87export const getAllUserNames = getAllUserNamesN("unbounded")
88

Callers 1

query.test.tsFile · 0.85

Calls 2

syncMethod · 0.80
pipeMethod · 0.65

Tested by

no test coverage detected