()
return outer
Return a blocking decorator that runs the function once.
Return a blocking decorator that runs the function once.
Return a blocking decorator that runs the function once .
def b_worker():
    """
    Return a blocking decorator that runs the function once.
    """
    def outer(func, *args, **kwargs):
        @functools.wraps(func)
        def inner(*args, **kwargs):
            logger.debug(f"running f{func} {args} {kwargs}")
            return func(*args, **kwargs)

        inner.spool = inner
        inner.delay = inner

        return inner

    return outer
def b_worker ( ) : def outer ( func , * args , * * kwargs ) : @ functools . wraps ( func ) def inner ( * args , * * kwargs ) : logger . debug ( f"running f{func} {args} {kwargs}" ) return func ( * args , * * kwargs ) inner . spool = inner inner . delay = inner return inner return outer