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

Function while

packages/effect/src/unstable/eventlog/EventLogRemote.ts:207–214  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

205 ) =>
206 Effect.retry(effect, {
207 while(e) {
208 hello = null
209 const isForbidden = Predicate.isTagged(e, "EventLogProtocolError") &&
210 (e as any as EventLogProtocolError).code === "Forbidden"
211 return Cache.invalidate(authCache, options.identity.publicKey).pipe(
212 Effect.as(isForbidden)
213 )
214 },
215 times: 5
216 })
217

Callers

nothing calls this directly

Calls 2

pipeMethod · 0.65
invalidateMethod · 0.65

Tested by

no test coverage detected