@property
    def __curtask__(self):
        task = Task.current_task(loop=self._loop)
        if not task:
            raise RuntimeError('No task is currently running')

        if not hasattr(task, '_locals'):
            task._locals = local_storage()
        return task._locals
Create namespace in current task.
dataset/ETHPy150Open klen/muffin/muffin/utils.py/local.__curtask__