February 2022
Intermediate to advanced
376 pages
10h 54m
English
|
I want to . . . |
How? |
Chapter(s) |
|---|---|---|
|
Learn the basics of single-threaded concurrency |
Understand how selectors and the event loop work |
1, 3 |
|
Run two operations concurrently |
Use asyncio tasks and API functions |
2, 4 |
|
Add a timeout to a long-running task |
Use the task’s |
2 |
|
Cancel a long-running task |
Use the task’s |
2 |
|
Learn how non-blocking sockets work |
Create a non-blocking echo server with selectors |
3 |
|
Handle graceful shutdowns of asyncio applications |
Use the signals API (*nix systems only) |
3 |
|
Run multiple tasks concurrently |
Use asyncio API functions such as |
4 |
|
Run asynchronous web API requests |
Use a library, ... |