/Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Classes/IpConnection.h
If CVarNetIpConnectionUseSendTasks is true, blocks until there are no outstanding send tasks. Since these tasks need to access the socket, this is called before the net driver closes the socket.
void WaitForSendTasks()