Learn about the new Asynchronous Framework in Python which includes Coroutines, Tasks, Futures and the Event Loop

What you will learn

Learn how to use the new async and await syntax

Learn about the asyncio module

Learn to run coroutines

Learn about the event loop in Python

Learn the differences between asyncio and threading

Description

The native asyncio library in Python allows you to write concurrent code using the `async` and `await` keywords. The official documentation on asyncio might be somewhat daunting, therefore I hope to make writing asynchronous code more accessible to the less experienced Python developer.

Asyncio is used in multiple Python asynchronous frameworks. Besides that it is practical in your own applications where you deal with network connections or concurrent HTTP requests.

The asyncio module was introduced in Python 3.4 and therefore not new per se. However, with Python version 3.7 the API of the asyncio module received quite some changes. These changes allow developers to interact more easily with the event loop.


Get Instant Notification of New Courses on our Telegram channel.


During this course I will teach you:

  • How to use the new async and await keywords
  • All about the asyncio module
  • Run coroutines
  • About the event loop in Python
  • The differences between asyncio and threading

About Me

My name is Koen, it is nice to meet you. Starting out at the age of 15 with iOS development I never lost my interest in Software Development. Currently I mainly keep myself occupied with web development. I am invested in multiple backend technologies and frameworks, such as Ruby on Rails, Django and Laravel. On the frontend side of projects I follow the development of React, Alpine.js and Vue.js closely.

English
language

Content

Introduction

Introduction
What and Why Asyncio
Threading vs Asyncio
What Python Version to Use

Getting Started with async and await

Introduction
Asynchronous Functions
Asynchronous Iterators
The @asynccontextmanager Decorator
Asynchronous Context Manager Classes
Asynchronous Generators
Asynchronous Comprehension

Coroutines and Awaitables

Introduction
Coroutine Objects and Async Functions
Ways of Running Coroutines
Cancelling Coroutines
Awaitable Objects

Tasks, Futures and the Event Loop

Introduction
Using Task Objects
Interacting with the Event Loop
The Concept of the Future

Wrapping Up

You Made It!