Reason for 30ms Task.Delay in DataReceiver? #294
derMaaster
started this conversation in
General
Replies: 2 comments
-
This When I claim it's the "fastest", it means the amount of time it takes a developer to get a TCP server and client up and running :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Many thanks Joel. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Within WatsonTcpClient.cs line 770 there is this code in the read-message region:
await _ReadLock.WaitAsync(token); WatsonMessage msg = await _MessageBuilder.BuildFromStream(_DataStream, token); if (msg == null) { await Task.Delay(30, token).ConfigureAwait(false); continue; }
Can someone please explain the logic of the above code specific to the Task.Delay of 30 milliseconds?
With that asked, it is mentioned in the README that WatsonTcp is the fastest, meaning it is a latency sensitive / optimized library?
Beta Was this translation helpful? Give feedback.
All reactions