def defers(func):
    @wraps(func)
    def wrapped(*a, **kw):
        return defer.maybeDeferred(func, *a, **kw)
    return wrapped
Decorator to make sure a function always returns a deferred
dataset/ETHPy150Open wcong/ants/ants/utils/decorator.py/defers