Skip to content

Latest commit

 

History

History

0x02-python_async_comprehension

img

id-like-to-interject-for-a-moment

Asynchronous Genrators

Asynchronous generators are a powerful feature introduced in Python 3.6 that combine the capabilities of asynchronous programming and generators. They allow you to create functions that can produce a sequence of values asynchronously.

Resources

Read or watch:

  1. PEP 530 – Asynchronous Comprehensions
  2. What’s New in Python: Asynchronous Comprehensions / Generators
  3. Type-hints for generators

Learning objectives

At the end of this project, you are expected to be able to explain to anyone, without the help of Google:

  • How to write an asynchronous generator
  • How to use async comprehensions
  • How to type-annotate generators