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

Function invalidateAll

packages/effect/src/ScopedCache.ts:683–689  ·  view source on GitHub ↗
(self: ScopedCache<Key, A, E, R>)

Source from the content-addressed store, hash-verified

681 * @since 4.0.0
682 */
683export const invalidateAll = <Key, A, E, R>(self: ScopedCache<Key, A, E, R>): Effect.Effect<void> =>
684 core.withFiber((parent) => {
685 if (self.state._tag === "Closed") {
686 return effect.interrupt
687 }
688 return invalidateAllImpl(parent, self.state.map)
689 })
690
691const invalidateAllImpl = <Key, A, E>(
692 parent: Fiber.Fiber<unknown, unknown>,

Callers

nothing calls this directly

Calls 1

invalidateAllImplFunction · 0.85

Tested by

no test coverage detected