Beignet API reference
    Preparing search index...

    Function runMemoScope

    • Run a function inside a fresh memo scope.

      Use this in scripts and unit tests to give memoized functions a cache lifetime. Nested scopes start empty; an active recorder is inherited so instrumentation keeps flowing.

      Type Parameters

      • T

      Parameters

      • fn: () => T

      Returns T