wialon / gmqtt

Python MQTT v5.0 async client
MIT License
400 stars 52 forks source link

message process task #116

Open cloud-rocket opened 4 years ago

cloud-rocket commented 4 years ago

Hi,

What is the proper way to use asyncio.create_task for running a message process loop? Something like:

while True:
   msg = await client.new_message()

  process(msg)

Thanks!!

Mixser commented 4 years ago

Hi @cloud-rocket,

Please clarify what you exactly want to do. Its seems question not about gmqt, but a question about general using of asyncio