3 ms·
Similar question to the other one at the time of writing, but more specific: does anyone have a good, thorough introduction to the "async event loop" (sometimes
by kqr 4y ago
Similar question to the other one at the time of writing, but more specific: does anyone have a good, thorough introduction to the "async event loop" (sometimes known as "asyncio") pattern? By thorough I mean that it goes beyond a starter tutorial, into both examples of various supporting libraries and implementation details that matter for usage. I'm fine with a book, too.
There are popular libraries for it in both Python and Perl and I suspect I could make good use for it if I understood it.
Unfortunately, I've only ever used it in a cargo cult manner of sticking together functions until the error messages go away (yeah yeah, it was only for "throwaway" "prototypes") so I really don't understand how it all is meant to fit together.
- hbrn 4y agoI found this post to be amazing intro that shows you how to go from simple generators to async event loop. https://mleue.com/posts/yield-to-async-await/ https://mleue.com/posts/yield-to-async-await/
- kqr 4y agoThis was very good! But true to what's common, it stops just as it gets really juicy!