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

Function hashGroupKey

repos/effect/packages/effect/src/RequestResolver.ts:290–301  ·  view source on GitHub ↗
(get: (entry: Request.Entry<A>) => K)

Source from the content-addressed store, hash-verified

288 * result // => ["User 1 with role admin", "User 2 with role admin"]
289 * ```
290 *
291 * @category constructors
292 * @since 4.0.0
293 */
294export const makeGrouped = <A extends Request.Any, K>(options: {
295 readonly key: (entry: Request.Entry<A>) => K
296 readonly resolver: (entries: NonEmptyArray<Request.Entry<A>>, key: K) => Effect.Effect<void, Request.Error<A>>
297}): RequestResolver<A> =>
298 makeWith({
299 batchKey: hashGroupKey(options.key),
300 delay: Effect.yieldNow,
301 collectWhile: constTrue,
302 runAll: options.resolver as any
303 })
304

Callers 2

makeGroupedFunction · 0.85
RequestResolver.tsFile · 0.85

Calls 3

getFunction · 0.70
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…