Dinnerbone / mcstatus

A Python class for checking the status of an enabled Minecraft server
http://dinnerbone.com/minecraft/tools/status/
1.11k stars 146 forks source link

Implement async_query using a ThreadPoolExecutor #123

Closed Iapetus-11 closed 3 years ago

Iapetus-11 commented 3 years ago

I implemented async_query() using a ThreadPoolExecutor which runs the sync function query() in a separate thread to not block the event loop. This was made in response to issue #122.

Iapetus-11 commented 3 years ago

Oh merge conflict due to black autoformatting those files 1 sec

Iapetus-11 commented 3 years ago

125 probably does this better, closing.