@eagleoutice/flowr - v2.13.14
    Preparing search index...

    Checks heap and elapsed-time pressure for named analysis features. See ReadOnlyFlowrAnalyzerGasContext.

    Implements

    Index
    name: "flowr-analyzer-gas-context" = 'flowr-analyzer-gas-context'
    • Restart the contingent, so what follows is measured from now. Supported API: call it between phases that should each get the full allowance (analyzer.context().gas.reset()).

      flowR calls it itself whenever a new analysis begins, so a caller only has to split its own phases. Operations in flight keep their contingent, as restarting a running traversal's clock would defeat the guard bounding it.

      Returns void

    • Run fn against a fresh contingent bounded by overrides, ending when it settles if fn is async. Every check while fn runs sees it, however deep, which is how the bounds reach sites that only ever get a context handed to them.

      Being ambient, concurrent operations on one analyzer see whichever started last, so prefer scope wherever the context can be threaded through.

      Type Parameters

      • T

      Parameters

      Returns T