Asyncio: How to Say Goodbye Without Losing Your Data
Too Long; Didn't Read
This article explains how to gracefully shut down an asyncio application without losing data. The author illustrates what's wrong with asyncio.shield() and shows how to handle interruption signals to guarantee that your asyncio application will be shut down gracefully.