Closed jerry-skydio closed 1 year ago
Turns out functools.lru_cache doesn't actually work for coroutines, it ends up caching the coroutine itself which is useless and crashes if called again.
Switch to async_lru, which provides a dropin replacement.
Topic: async_lru Reviewers: brian-k
Reviews in this chain: └https://github.com/Skydio/revup/pull/112 Switch to async_lru for lru_cache()
Turns out functools.lru_cache doesn't actually work for coroutines, it ends up caching the coroutine itself which is useless and crashes if called again.
Switch to async_lru, which provides a dropin replacement.
Topic: async_lru Reviewers: brian-k