MCPcopy
hub / github.com/codeaashu/claude-code / runWithWorkload

Function runWithWorkload

src/utils/workloadContext.ts:52–57  ·  view source on GitHub ↗
(
  workload: string | undefined,
  fn: () => T,
)

Source from the content-addressed store, hash-verified

50 * exactly what the caller passed — including `undefined`.
51 */
52export function runWithWorkload<T>(
53 workload: string | undefined,
54 fn: () => T,
55): T {
56 return workloadStorage.run({ workload }, fn)
57}
58

Callers 2

executeUserInputFunction · 0.85
drainCommandQueueFunction · 0.85

Calls 1

runMethod · 0.80

Tested by

no test coverage detected