1 2
Use add_done_callback() in sock_* asyncio API to unsubscribe reader/writer early on calcellation.