Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is an Event Loop?
Think of what it does in the asyncio library.
Define a coroutine.
Recall the keywords async and await.
What mechanism does the Event Loop use to manage tasks?
Think about the definition of the Event Loop.
True or False: Coroutines can run simultaneously without the Event Loop.
Reflect on the structural aspects of asynchronous programming.
Create an asynchronous function that simulates fetching data from multiple sources and uses asyncio.gather() to execute them.
Make sure to include print statements to track progress.
Discuss the limitations of using an Event Loop compared to threading in CPU-bound operations. Why might you still prefer one over the other?
Consider the nature of the tasks being managed.
5 more questions in this section. Enroll free to practise them all.
Enroll free