Not blocking GUI by network worker needing asyncio?

Axel Rau Axel.Rau at chaos1.de
Tue Jul 6 10:55:29 BST 2021



> Am 05.07.2021 um 16:29 schrieb Kyle Altendorf <sda at fstab.net <mailto:sda at fstab.net>>:
> 

I personally prefer to be able to use async/await for everything and not have to deal with threads.

Sounds reasonable.

> But, if you do just push all your long running tasks into threads, sure, you can just use blocking versions.  Though, you still give up cancellability as compared with async options.

Thanks Kyle for the advice.
I will first try to fix my current thread+qasyncio approach and then give async-only a chance.

Axel
---
PGP-Key: CDE74120  ☀  computing @ chaos claudius

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210706/fb109790/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210706/fb109790/attachment.sig>


More information about the PyQt mailing list