Sujet : Re: matrix.tsk
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 07. Apr 2024, 22:25:09
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <uuv2vl$30fkk$4@dont-email.me>
References : 1 2 3
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
On Sun, 07 Apr 2024 11:49:08 +0200, fir wrote:
Lawrence D'Oliveiro wrote:
>
Other languages have async/await and event-loop APIs.
>
buiilt in language?
Quiet a few, e.g. Python. It provides a standard event-loop API
<
https://docs.python.org/3/library/asyncio.html> which is pluggable with
alternative event loops. For example, every GUI already has its own event
loop: simply give that an asyncio-compatible wrapper, and you have the
concept of “event-loop-agnostic” code, which can run on any asyncio-
compatible event loop.
this call queue is somewhat different thing and its better imo - its
more like lov level and its better integrated.
You can build all that on top of an event loop. The nice thing about a
generalized event loop is that the result can coexist with other async
code.