monkeytype icon indicating copy to clipboard operation
monkeytype copied to clipboard

Add memoize async util (rewrite get json lists in misc)

Open Bruception opened this issue 3 years ago • 2 comments

Description

Usage

const asyncFunction = async () => {...};

const cachedAsyncFunction = memoizeAsync(asyncFunction);

await cachedAsyncFunction();
await cachedAsyncFunction(); // Cached

Bruception avatar Sep 24 '22 16:09 Bruception

This PR is stale. Please trigger a re-run of the PR check action.

github-actions[bot] avatar Oct 05 '22 20:10 github-actions[bot]

Todo:

  • [x] Rewrite get json lists in misc to use this

Miodec avatar Oct 17 '22 09:10 Miodec

This PR is stale. Please trigger a re-run of the PR check action.

github-actions[bot] avatar Oct 24 '22 20:10 github-actions[bot]

The PR check action failed. Please review the logs and make the necessary changes. https://github.com/monkeytypegame/monkeytype/actions/runs/3321065029

github-actions[bot] avatar Oct 25 '22 12:10 github-actions[bot]

The PR check action failed. Please review the logs and make the necessary changes. https://github.com/monkeytypegame/monkeytype/actions/runs/3321072023

github-actions[bot] avatar Oct 25 '22 12:10 github-actions[bot]

@Bruception its ready, could you have a look through

Miodec avatar Oct 26 '22 11:10 Miodec

LGTM iiw

Bruception avatar Oct 30 '22 21:10 Bruception

The PR check action failed. Please review the logs and make the necessary changes. https://github.com/monkeytypegame/monkeytype/actions/runs/3357209889

github-actions[bot] avatar Oct 30 '22 21:10 github-actions[bot]