Deleting highly performant code

added by DotNetKicks
3/31/2017 1:17:26 PM

1 Kicks, 156 Views

BatchRequestParser.ReadMany allow us to stream read the data, it read each individual command and return it. The code in line 17 ( var task = await parser.MoveNext() ) is pretty strange. MoveNext is returning a Task . The idea is that we are going to read a command from the network and parse it immediately.