HF RL Explorer

Task: Python asyncio - Properly Wait for Cancelled Shielded Tasks

Task: Python asyncio - Properly Wait for Cancelled Shielded Tasks: a task in Terminal-Lego-15k (Harbor dataset). When using asyncio.shield() to protect a task from cancellation, there's a subtle issue: if the outer coroutine is cancelled, the await statement raises CancelledError immediately, even…

The task

When using `asyncio.shield()` to protect a task from cancellation, there's a subtle issue: if the outer coroutine is cancelled, the `await` statement raises `CancelledError` immediately, even though the shielded task continues running in the background. This makes it difficult to properly wait for the shielded task…

Part of PrimeIntellect/Terminal-Lego-15k.