Atrium — shared contracts and the typesetting engine
    Preparing search index...
    • Charge cost steps. Returns false once the run must stop — callers unwind rather than throwing, because compile() reserves exceptions for engine bugs and a runaway macro is not a bug in the engine.

      The abort signal is polled here rather than subscribed to: the engine is synchronous, so a step boundary is the only place cancellation can be observed at all.

      Parameters

      • budget: Budget
      • cost: number = 1

      Returns boolean