netserializer
netserializer copied to clipboard
Support for async
When reading and writing to network connections (using NetworkStream) we often want to use async as it scales a lot better than having one thread for every client.
Assuming we'd want to read directly from a NetworkStream class using NetSerializer it would be essential to have async versions of Deserialize / Serialize (which internally use the ReadAsync and WriteAsync methods of the given stream).
Is that planned? If not, could you give me a rough outline what the best way to add it would be? (like what to keep in mind) @tomba
I don't exactly know what it would need, but I have a hunch that it would slow down NetSerializer quite a lot. But feel free to try and prove me wrong =).