Tutorial — Trio 0.32.0 documentation
Welcome to the Trio tutorial! Trio is a modern Python library for writing asynchronous applications – that is, programs that want to do multiple things at the same time with parallelized I/O, like a web spider that fetches lots of pages in parallel, a web server juggling lots of simultaneous downloads… that sort of thing. Here we’ll try to give a gentle introduction to asynchronous programming with Trio. We assume that you’re familiar with Python in general, but don’t worry – we don’t assume you know anything about asynchronous programming or Python’s new async/await feature. Also, unlike many async/await tutorials, we assume that your goal is to use Trio to write interesting programs, so we won’t go into the nitty-gritty details of how async/await is implemented inside the Python interpreter. The word “coroutine” is never mentioned. The fact is, you really don’t need to know any of that stuff unless you want to implement a library like Trio, so we leave it out (though we’ll throw in a
Welcome to the Trio tutorial! Trio is a modern Python library for writing asynchronous applications – that is, programs that want to do multiple things at the same time with parallelized I/O, like a web spider that fetches lots of pages in parallel, a web server juggling lots of simultaneous downloads… that sort of thing. Here we’ll try to give a gentle introduction to asynchronous programming with Trio. We assume that you’re familiar with Python in general, but don’t worry – we don’t assume you know anything about asynchronous programming or Python’s new async/await feature. Also, unlike…
saved by
related reading
- Python's asyncio: A Hands-On Walkthrough – Real Pythonrealpython.com
- python - How does asyncio actually work? - Stack Overflowstackoverflow.com
- (Quite) A Few Words About Asyncyoric.github.io
- How Python Asyncio Works: Recreating it from Scratchjacobpadilla.com
- 500 Lines or LessA Web Crawler With asyncio Coroutinesaosabook.org
- Google Colabcolab.research.google.com
- Notes on structured concurrency, or: Go statement considered harmful - njs blogvorpus.org
- Introduction - Asynchronous Programming in Rustrust-lang.github.io
- What Async Promised and What it Delivered — Causalitycausality.blog
- A Design Space Exploration of Async/Awaitcel.cs.brown.edu
- Zig explores structured concurrency [LWN.net]lwn.net
- Reading 15: Promisesweb.mit.edu