Skip to content

faststream_lifespan

fastagency.studio.db.prisma.faststream_lifespan async #

faststream_lifespan(
    context: ContextRepo,
) -> AsyncGenerator[None, None]
Source code in fastagency/studio/db/prisma.py
@asynccontextmanager
async def faststream_lifespan(context: ContextRepo) -> AsyncGenerator[None, None]:
    async with _lifespan():
        yield