I have a main class which does some operations and another class which communicates with a server using a socket.
Does creating a object of the socket class in the following manner makes all the operations in the socket class run on a separate thread?
await Task.Run(()=>socketObj.initializeSocket());
Or is there a another way to launch the class on a separate thread?