Skip to Content
Python Concurrency with asyncio
book

Python Concurrency with asyncio

by Matthew Fowler
February 2022
Intermediate to advanced
376 pages
10h 54m
English
Manning Publications
Content preview from Python Concurrency with asyncio

inside front cover

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 wait_for method

2

Cancel a long-running task

Use the task’s cancel method

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 gather, wait, and as_completed

4

Run asynchronous web API requests

Use a library, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Testing with pytest

Python Testing with pytest

Brian Okken
Python for DevOps

Python for DevOps

Noah Gift, Kennedy Behrman, Alfredo Deza, Grig Gheorghiu

Publisher Resources

ISBN: 9781617298660Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link