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.
Example:
HandleRetriesFor(() => { html.findMath() .compile() .getMetrics() .typeset() .updateDocument(); }).catch(err => { console.log(err.message); });
The code to run that might cause retries
A promise that is satisfied when the code runs completely, and fails if the code generates an error (that is not a retry).
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.
Example: