Should ValueTaskSocket.SendAsync() return immediately or only after transmission is complete?
In the following C# .NET8 snippet, should the following ValueTask Socket.SendAsync() call return immediately or only after the transmission is complete? On my system, the code snippet below returns from soc.SendAsync() immediately while the transmission continues in the background (verified by observing Wireshark traffic). I did not expect this, and I don’t see a lot of examples using SendAsync() that returns ValueTask.