Python's asyncio: A Hands-On Walkthrough

https://realpython.com/async-io-python/

15 points · 6 comments · view on lemmy.world

6 Comments

logging_strict@programming.dev · 2 pts · 1y (4 replies)

thank you for the history lesson

trio and anyio fixes that

One phrase not found in the article, colored functions

kebab@endlesstalk.org · 1 pts · 1y (3 replies)

I admit that I haven’t read the whole article but could you please clarify what kind of issue is described?

Also, what do you mean by colored functions? The term seems ambiguous

sociablefish@programming.dev · 1 pts · 1y
logging_strict@programming.dev · 1 pts · 1y (1 reply)

The term is used by the trio package author. You are in for a treat! Go read the docs for trio right now! Then anyio.

Take what the trio author has to say very very seriously.

The term colored function means, in order to support concurrency, needing to modify a function with special language syntax, in this case, async.

kebab@endlesstalk.org · 2 pts · 1y

Awesome, thank you for your insights!

fixmycode@feddit.cl · 1 pts · 1y

I've been using asyncio for a few years now and this article had stuff I haven't even thought about, very useful!