brendan-w / python-OBD

OBD-II serial module for reading engine data
GNU General Public License v2.0
1.06k stars 370 forks source link

using async without a thread #110

Open wilsonwang371 opened 6 years ago

wilsonwang371 commented 6 years ago

sometimes user needs to run async in his/her own thread instead to catch exceptions.

I added a main_loop() function so that I can control Async and get internal exceptions. In this way I can do something in case of hardware failure and I got disconnected.

alistair23 commented 5 years ago

Hey Wilson,

Thanks for the patch! Do you mind updating the documentation at the same time to add some details and examples of how this should be used?

wilsonwang371 commented 5 years ago

let me take some time to go over it again. I totally forgot this pull request. :)