asyncache icon indicating copy to clipboard operation
asyncache copied to clipboard

Await pending future

Open cancan101 opened this issue 5 years ago • 1 comments

The library does not seem like access to the cache awaits pending future like this library does: https://github.com/aio-libs/async-lru/blob/ae252508f9c5aecf9c02ddeb879d06c28dbffc42/async_lru.py#L150

This means that when I try to call my function multiple times, subsequent runs are not awaiting the prior future.

The issue seems to be here where the future should be inserted into the dict before awaiting: https://github.com/hephex/asyncache/blob/27ec0ad90ccb2a86ffaa8dcf55bb388059b484a0/asyncache/init.py#L57-L61

cancan101 avatar Oct 27 '20 01:10 cancan101

Is there another library or fork that has this behaviour?

Benoss avatar Jul 04 '24 22:07 Benoss