Add memoize async util (rewrite get json lists in misc)
Description
Usage
const asyncFunction = async () => {...};
const cachedAsyncFunction = memoizeAsync(asyncFunction);
await cachedAsyncFunction();
await cachedAsyncFunction(); // Cached
This PR is stale. Please trigger a re-run of the PR check action.
Todo:
- [x] Rewrite get json lists in misc to use this
This PR is stale. Please trigger a re-run of the PR check action.
The PR check action failed. Please review the logs and make the necessary changes. https://github.com/monkeytypegame/monkeytype/actions/runs/3321065029
The PR check action failed. Please review the logs and make the necessary changes. https://github.com/monkeytypegame/monkeytype/actions/runs/3321072023
@Bruception its ready, could you have a look through
LGTM iiw
The PR check action failed. Please review the logs and make the necessary changes. https://github.com/monkeytypegame/monkeytype/actions/runs/3357209889