is there a plan to support `async with`
Ouverte
- Langage dominant
- Python
- Étoiles
- 431
- Forks
- 57
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
I noticed that we should close the zmq stream by function close.is there a plan to use async with like:
```python
async with aiozmq.create_zmq_stream(
zmq.PAIR,
bind=addr) as server:
while True:
server.write(b"Server message to client")
try:
data = await server.read()
except asyncio.CancelledError:
break
print("Async server read: {data}".format(data=data))
asyncio.sleep(1)
```
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.