aboutsummaryrefslogtreecommitdiff
path: root/src_py/hatter/backend.py
blob: 059c636721b5f9412f27048ffc64916eed4ac7a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from pathlib import Path

from hat import aio


async def create(db_path: Path
                 ) -> 'Backend':
    backend = Backend()
    backend._async_group = aio.Group()

    return backend


class Backend(aio.Resource):

    @property
    def async_group(self):
        return self._async_group