@mathjax/src
    Preparing search index...

    Function handleRetriesFor

    • A wrapper for actions that may be asynchronous. This will rerun the action after the asychronous action completes. Usually, this is for dynamic loading of files. Legacy MathJax does that a lot, so we still need it for now, but may be able to go without it in the future.

      Example:

      HandleRetriesFor(() => {
      
          html.findMath()
              .compile()
              .getMetrics()
              .typeset()
              .updateDocument();
      
      }).catch(err => {
        console.log(err.message);
      });
      

      Parameters

      • code: () => any

        The code to run that might cause retries

      Returns Promise<any>

      A promise that is satisfied when the code runs completely, and fails if the code generates an error (that is not a retry).