| 1 | How do you correctly test async generators and async context managers using pytest and pytest-asyncio? Python › Async Generators & Async Context Managers | Python | Async Generators & Async Context Managers | Advanced |
| 2 | What is an async context manager, and which two dunder methods does it require? Python › Async Generators & Async Context Managers | Python | Async Generators & Async Context Managers | Beginner |
| 3 | How do async generators interact with asyncio.Queue to implement a producer-consumer pattern across separate tasks? Python › Async Generators & Async Context Managers | Python | Async Generators & Async Context Managers | Advanced |
| 4 | How would you implement a 'fan-out, fan-in' pattern using multiple async generators consumed concurrently and merged into one stream? Python › Async Generators & Async Context Managers | Python | Async Generators & Async Context Managers | Advanced |
| 5 | How do you write an async context manager more concisely using @contextlib.asynccontextmanager? Python › Async Generators & Async Context Managers | Python | Async Generators & Async Context Managers | Intermediate |
| 6 | How does an async generator interact with try/finally for guaranteed cleanup, similar to regular generators? Python › Async Generators & Async Context Managers | Python | Async Generators & Async Context Managers | Intermediate |
| 7 | How would you implement an async context manager that also supports being used as a decorator, similar to contextlib.contextmanager's decorator support? Python › Async Generators & Async Context Managers | Python | Async Generators & Async Context Managers | Advanced |
| 8 | What is an async generator, and how does it differ from a regular generator? Python › Async Generators & Async Context Managers | Python | Async Generators & Async Context Managers | Beginner |
| 9 | How do you consume an async generator using 'async for'? Python › Async Generators & Async Context Managers | Python | Async Generators & Async Context Managers | Beginner |
| 10 | How do you build an async generator pipeline, chaining one async generator's output into another, like a synchronous generator pipeline? Python › Async Generators & Async Context Managers | Python | Async Generators & Async Context Managers | Intermediate |
| 11 | How do async comprehensions work, combining 'async for' directly inside a list/set/dict comprehension? Python › Async Generators & Async Context Managers | Python | Async Generators & Async Context Managers | Intermediate |
| 12 | How do you handle backpressure when an async generator produces items faster than the consumer can process them? Python › Async Generators & Async Context Managers | Python | Async Generators & Async Context Managers | Advanced |
| 13 | How would you implement a custom async iterator class from scratch, without using an async generator function? Python › Async Generators & Async Context Managers | Python | Async Generators & Async Context Managers | Advanced |
| 14 | How would you implement timeout handling for an async generator's individual yields, so a stalled source doesn't hang the consumer forever? Python › Async Generators & Async Context Managers | Python | Async Generators & Async Context Managers | Advanced |
| 15 | How do you properly propagate cancellation into an async generator when the consuming task is cancelled mid-iteration? Python › Async Generators & Async Context Managers | Python | Async Generators & Async Context Managers | Advanced |
| 16 | How would you implement asynchronous file I/O using aiofiles alongside an async context manager, to avoid blocking the event loop during file operations? Python › File I/O & Context Managers | Python | File I/O & Context Managers | Advanced |
| 17 | What is the basic pattern for running an async function using asyncio.run()? Python › Concurrency (asyncio/threading/multiprocessing) | Python | Concurrency (asyncio/threading/multiprocessing) | Beginner |
| 18 | How do you run multiple coroutines concurrently using asyncio.gather()? Python › Concurrency (asyncio/threading/multiprocessing) | Python | Concurrency (asyncio/threading/multiprocessing) | Intermediate |
| 19 | How does asyncio's event loop schedule and switch between multiple coroutines, and what makes this cooperative rather than preemptive? Python › Concurrency (asyncio/threading/multiprocessing) | Python | Concurrency (asyncio/threading/multiprocessing) | Advanced |
| 20 | How do you safely run a blocking, synchronous function from within an asyncio coroutine without freezing the event loop? Python › Concurrency (asyncio/threading/multiprocessing) | Python | Concurrency (asyncio/threading/multiprocessing) | Advanced |
| 21 | What is the relationship between generators and the iterator protocol? Python › Iterators & the Iterator Protocol | Python | Iterators & the Iterator Protocol | Intermediate |
| 22 | How do you include structured context (like a request ID) in every log message using LoggerAdapter or extra? Python › Logging | Python | Logging | Intermediate |
| 23 | How do you write a decorator that works correctly on an async function (coroutine), given that a regular decorator's wrapper would break 'await' usage? Python › Decorators | Python | Decorators | Advanced |
| 24 | What exception signals the end of iteration, and how does a for-loop use it internally? Python › Iterators & the Iterator Protocol | Python | Iterators & the Iterator Protocol | Beginner |