def autospawn(func):
    @functools.wraps(func)
    def wrapped(self, *args, **kwargs):
        self.spawn(func, self, *args, **kwargs)
    return wrapped
Decorator that will spawn the call in a local greenlet
dataset/ETHPy150Open progrium/ginkgo/ginkgo/core.py/autospawn