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

Function isBareFailure

packages/effect/src/ui/Query.ts:4254–4256  ·  view source on GitHub ↗
(result: Settled | undefined)

Source from the content-addressed store, hash-verified

4252 })
4253
4254const isBareFailure = (result: Settled | undefined): boolean =>
4255 result !== undefined && result._tag === "Failure" &&
4256 Option.isNone(result.previousSuccess)
4257
4258// A fetched Failure holds only its Fails, so it has the shape of a hydrated one.
4259const failsOnly = (cause: Cause.Cause<any>): Cause.Cause<any> =>

Callers 3

emitFetchFunction · 0.85
watchFunction · 0.85
closeWindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected