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

Function isOptimisticError

packages/infra/src/WorkflowEngineCosmos.ts:130–130  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

128 : typeof u === "object" && u !== null && "code" in u && u.code === code
129
130const isOptimisticError = (u: unknown) => isCosmosStatus(u, 409) || isCosmosStatus(u, 412) || isCosmosStatus(u, 404)
131
132// --- Storage codecs ----------------------------------------------------------
133// Values flowing through the engine's activity / deferred boundary are already

Callers 1

replaceExecFunction · 0.85

Calls 1

isCosmosStatusFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…