Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Exploring Asynchronous Iterators and Iterables (Summary)

Now you know how to write asynchronous iterators and iterables in Python. Asynchronous iterators are what Python uses to control async for loops, while asynchronous iterables are objects that you can iterate over using an async for loop, the built-in anext() function, or an async comprehension.

With async iterables and iterators, you can write non-blocking loops in your asynchronous code. This way, you can perform different tasks asynchronously.

In this video course, you’ve learned how to:

  • Differentiate async iterators and iterables in Python
  • Create async generator expressions and generator iterators
  • Write async iterators and iterables using .__aiter__() and .__anext__()
  • Use async iterators in async loops and comprehensions

Resources mentioned in this lesson:

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

00:00 And here you are at the end of this course where you have learned how to make coffee and open a parcel while your laptop is starting up. Congratulations. And not only have you learned that, you have also learned what asynchronous iterators and iterables are, how concurrency is achieved using those async iterators and iterables, and how async iterators and iterables are implemented.

00:26 Now, for you to get the most out of this course and out of the efforts you have put in, I would highly recommend the following resources. So firstly, there is the written tutorial that underlies this video course, and secondly, there is Speed Up Your Python Program With Concurrency.

00:43 So that is a deep dive into concurrency. Concurrency is more than just async programming. Remember I mentioned multithreading at one point, which is also a form of concurrency.

00:54 Then there are Iterators and Iterables in Python, so not the async version, just the normal version if you like. And then there is a deep dive in Python’s asyncio package, which is the package used for async programming.

01:11 And finally, you saw some special methods, which started with double underscores. So here is also a link to Single and Double Underscore Naming Conventions in Python.

01:24 Now, as a final note, you might be wondering, Steven, what on earth was in that parcel in the hall? You got the scissors, you got rid of the packaging, but you never told me what was actually in that package.

01:36 Well, as Philipp from Real Python told me, he said, Steven, if your laptop really takes 10 minutes to start up, I think it’s about time you buy yourself a new one.

01:46 So that was the package that arrived in the hall. Thank you for watching. See you in the next course.

Become a Member to join the conversation.