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

Function applyRequestTypeInterruptibility

packages/infra/src/routing.ts:28–31  ·  view source on GitHub ↗
(
  requestType: "command" | "query",
  effect: Effect.Effect<A, E, R>
)

Source from the content-addressed store, hash-verified

26export * from "./routing/middleware.ts"
27
28export const applyRequestTypeInterruptibility = <A, E, R>(
29 requestType: "command" | "query",
30 effect: Effect.Effect<A, E, R>
31) => requestType === "command" ? Rpc.uninterruptible(effect) : effect
32
33// it's the result of extending S.Req setting success, config
34// it's a schema plus some metadata

Callers 2

makeImplLayerFunction · 0.85
makeRoutesFunction · 0.85

Calls

no outgoing calls

Tested by 1

makeImplLayerFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…