Timeouts and Cancellation in Asyncio

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • medium
  • Pro

Your asyncio service calls a slow payment provider. Explain how to put a time limit on the call, what actually happens inside a coroutine when it's cancelled, and the mistake that stops cancellation from working.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →