effect-io-ai

Package: effect
Module: Layer

Layer.forkMemoMapUnsafe

Constructs a child MemoMap synchronously, allowing it to reuse layers already memoized in the parent while isolating any new layer allocations to the child map.

When to use

Use to synchronously fork a memo map for manual layer building when child builds should see parent memoized layers without writing newly built layers back to the parent.

See

Signature

declare const forkMemoMapUnsafe: (parent: MemoMap) => MemoMap

Source

Since v4.0.0