[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: Not blocking GUI by network worker needing asyncio?
From:       Axel Rau <Axel.Rau () chaos1 ! de>
Date:       2021-07-06 9:55:29
Message-ID: 950F7E9C-C6BB-43DE-B73A-A372FB644061 () Chaos1 ! DE
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> Am 05.07.2021 um 16:29 schrieb Kyle Altendorf <sda@fstab.net \
> <mailto:sda@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


[Attachment #5 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html; \
charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote \
type="cite" class=""><div class="">Am 05.07.2021 um 16:29 schrieb Kyle Altendorf \
&lt;<a href="mailto:sda@fstab.net" class="">sda@fstab.net</a>&gt;:</div><br \
class="Apple-interchange-newline"><div class=""></div></blockquote><div><br \
class=""></div><span style="font-family: Menlo-Regular;" class="">I personally prefer \
to be able to use async/await for everything and not have to deal with \
threads.</span></div><div><span style="font-family: Menlo-Regular;" class=""><br \
class=""></span></div><div>Sounds reasonable.<br style="font-family: Menlo-Regular;" \
class=""><br style="font-family: Menlo-Regular;" class=""><blockquote type="cite" \
class=""><div class=""><div class="">But, if you do just push all your long running \
tasks into threads, sure, you can just use blocking versions. &nbsp;Though, you still \
give up cancellability as compared with async options.<br \
class=""></div></div></blockquote><br class=""></div><div>Thanks Kyle for the \
advice.</div><div>I will first try to fix my current thread+qasyncio approach and \
then give async-only a chance.</div><div class=""><br class=""></div>Axel<br \
class=""><div class=""> <div dir="auto" style="caret-color: rgb(0, 0, 0); color: \
rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; \
text-transform: none; white-space: normal; word-spacing: 0px; \
-webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; \
-webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" \
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; \
text-align: start; text-indent: 0px; text-transform: none; white-space: normal; \
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: \
break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div \
style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: \
0px; text-transform: none; white-space: normal; word-spacing: 0px; \
-webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; \
line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); \
letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: \
break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div \
style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; \
font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: \
normal; font-variant-numeric: normal; font-variant-alternates: normal; \
font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; \
line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; \
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; \
-webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; \
line-break: after-white-space;" class=""><div class="">---<br \
class="">PGP-Key:&nbsp;CDE74120 &nbsp;☀ &nbsp;computing @ chaos \
claudius</div></div></div></div></div></div> </div>
<br class=""></body></html>


["signature.asc" (signature.asc)]

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEl5evOTfnjZdhkBzKaPxTRM3nQSAFAmDkKJIACgkQaPxTRM3n
QSAX9A/+O8EpLyAuPTdpDB0H7NvJUIcWJmd0Dav/1rSEyUTDm7U5GAYcyRSy07sA
ajgKSeuuFvGjfufaUdKHYhVJIEbf669xwljj7OTNXhix+DjZ5AZYoECUbJNKgekg
pYp30wYxToZujd/S5Qie7qCTegcUZPv9yXu4mz2A2ULrTUj1sSuP2FR8J/1YRpOI
a9nU7UGPnQAu/I+orkOAKQHzE6ICpThKhYl0k98RxBIg42KS1cnAp2ik8JXSP0qI
ZWJuFY81t4H/ixsCp4qyWlmdvOqVFfIaSt1N5G5oxO5ifTQSFrZPJcKGgFXAEPCX
7ZuTsoGDlSctxdZzb+o937xpXR1JDG/z+qdTDu63IvuIvCkVuc6i+VocI+9fpvCi
P+U1RUmsqwV/qAKDyRq7BIEpCYFqOeEV53vHskpMI7NvqbUAWgMG0UBY9XHLfXQB
JpDuk9RMym5mw9a4DeDO5ipwEB5D4srBqTainmrvTRdHHYhLef6gK7k1IUwalHXH
b+Hrm2UIvNRE4xiZ9AHeeShGqduykbTdUjXxJKsNnMJe/dNTLQpb/4HKOuahS8V4
B0bnXo9TRftV/fhz8B81/pWx8VfgdxOkqd3tqCD2VGLOPhFg/EFp6Ls8mbqFdWZa
BHsUpbestEj7lmeXV43HuloKfaGvt0l65GnNx1OtPVCUbveLsNI=
=zLOB
-----END PGP SIGNATURE-----


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic