INNER CODE UNIT · Python

func_res

python-cachier/cachier · src/cachier/core.py:113

        func_res = func(*args, **kwds)
        core.set_entry(key, func_res)
    except BaseException as exc:
        print(f"Function call failed with the following exception:\n{exc}")


async def _function_thread_async(core: _BaseCore, key, func, args, kwds):
    try:
        func_res = await func(*args, **kwds)
        await core.aset_entry(key, func_res)
    except BaseException as exc:
        print(f"Function call failed with the following exception:\n{exc}")


def _calc_entry(core: _BaseCore, key, func, args, kwds, printer=lambda *_: None) -> Optional[Any]:
    core.mark_entry_being_calculated(key)
    try:
        func_res = func(*args, **kwds)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…