nats-io / stan.py

Python Asyncio NATS Streaming Client

Home Page:https://nats.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Context managers

juandiegopalomino opened this issue · comments

Hi there,
So looking at the usage w/ closing channels, it'd be really swell to have context managers to ensure that the channels always close even if there's an error: https://docs.python.org/3/library/contextlib.html