Skip to Content
Intuitive Python
book

Intuitive Python

by David Muller
May 2021
Intermediate to advanced
142 pages
3h 37m
English
Pragmatic Bookshelf
Content preview from Intuitive Python

Building with an Alternate Model: asyncio

A discussion of concurrency in Python is not complete without mentioning the asyncio module. asyncio is noteworthy for several reasons including that it is a recent addition to Python (arriving in Python 3.4) and includes its own special reserved keywords async and await.

So far, we’ve talked about using threads and processes in Python—neither of those had their own dedicated reserved keywords. asyncio is different than threads and processes primarily because asyncio relies on a programming paradigm called cooperative multitasking. The asyncio reserved keywords async and await help facilitate running code in this cooperative multitasking model.

What does cooperative multitasking mean? Let’s learn more ...

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

Pythonic Programming

Pythonic Programming

Dmitry Zinoviev
Python for Geeks

Python for Geeks

Muhammad Asif

Publisher Resources

ISBN: 9781680508635Errata Page