INNER CODE UNIT · Python
__await__
python-cachier/cachier · src/cachier/core.py:71
def __await__(self):
if False:
yield None
return self._value
async def _background_recalc_async(
core: _BaseCore,
key: Any,
func: Callable[..., Any],
args: Any,
kwds: Any,
) -> None:
"""Run async recomputation in background and clear processing flag.
This helper ensures that the cache entry's "being calculated" state is cleared only after the background
recomputation and cache update (performed by ``_function_thread_async``) have completed.