javipalanca / spade

Smart Python Agent Development Environment
MIT License
258 stars 98 forks source link

SPADE - Asyncio 3.9.2 compability? #90

Open mmaxus35 opened 3 years ago

mmaxus35 commented 3 years ago

I have a blocking continuous I/O operation where I have to read sensor values from raspberry. At the same time, my multi-agents should access the results of the readings. However, This blocking continuous I/O operation has to be run in another thread. To achieve this SPADE proposes to use the run_in_executor method ( implemented in Asyncio Python 3.9.2 library ). AFAIK, Spade has no 3.9.2 support. Do you have any alternative solutions for this?

Thank you. Best Regards.