MCPcopy Create free account
hub / github.com/Effect-TS/effect / getUserById

Method getUserById

ai-docs/src/05_batching/10_request-resolver.ts:70–73  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

68 // Wrap the resolver in a service method. The resolver batches calls to
69 // `getUserById` that occur within the delay window.
70 const getUserById = (id: number) =>
71 Effect.request(new GetUserById({ id }), resolver).pipe(
72 Effect.withSpan("Users.getUserById", { attributes: { userId: id } })
73 )
74
75 return { getUserById } as const
76 })

Callers

nothing calls this directly

Calls 2

pipeMethod · 0.65
requestMethod · 0.45

Tested by

no test coverage detected