Method ReceiveAsync NamespaceNATS.Client.Core AssemblyNATS.Client.Core.dll ReceiveAsync(Memory<byte>) Receives data asynchronously from the connection. ValueTask<int> ReceiveAsync(Memory<byte> buffer) Parameters buffer Memory<byte> The buffer to store the received data. Returns ValueTask<int> A task representing the asynchronous receive operation with the number of bytes received.