Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7596

MicroPython • How to properly close an asyncio TCP writer stream ?

$
0
0
When closing an asyncio TCP stream in MicroPython and RPi Pico, which is the correct and recomended method ? :
1. await writer.aclose()
2. writer.close(); await writer.wait_closed()
ChatGPT say that method 1 si the one, but DeepSeek says 2... :| So, I don't know what to believe...

Statistics: Posted by Marus780 — Thu Apr 24, 2025 7:49 pm



Viewing all articles
Browse latest Browse all 7596

Trending Articles