aio-libs / aio-libs/aiozmq

Strange behaviour (or me not properly understanding asyncio and aiozmq) - Code only sends when publish more than once

オープン
#188 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
431
フォーク
57
PR マージ指標
30日以内にマージされた PR はありません

説明

The publish is only send (or received) when max > 1, but then it only sends one less time than asked to run.

```
async def go():
tb = await rpc.connect_pubsub(connect="tcp://localhost:5501")
max = 2
idx = 0
while True:
print("sleeping ")
if idx < max:
tb.publish("botupdates").message("Test")
await asyncio.sleep(4)
idx = idx +1


asyncio.run(go())
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。