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

Function getAllUserNamesN

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

Source from the content-addressed store, hash-verified

73export const getUserNameByIdPiped = (id: number) => pipe(new GetNameById({ id }), Effect.request(UserResolver))
74
75export const getAllUserNamesN = (concurrency: Concurrency) =>
76 getAllUserIds.pipe(
77 Effect.flatMap(Effect.forEach(getUserNameById, { concurrency, batching: true })),
78 Effect.onInterrupt(() => FiberRef.getWith(interrupts, (i) => Effect.sync(() => i.interrupts++)))
79 )
80
81export const getAllUserNamesPipedN = (concurrency: Concurrency) =>
82 getAllUserIds.pipe(

Callers 1

query.test.tsFile · 0.85

Calls 2

syncMethod · 0.80
pipeMethod · 0.65

Tested by

no test coverage detected