You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[API Proposal]: Add Ping.SendPingAsync overloads with CancellationToken #67260
How about returning ValueTask or accepting Memory<byte>? In the latter case PingReply.Buffer might need taking a look at. I haven't understood whether it contains the original buffer passed to the method. If it does, we can ignore it when constructing the resulting ping reply.
One thought: could TimeSpan timeout be changed to TimeSpan? timeout = null? This would allow you to fall back to the default timeout as is possible with the int timeout APIs.
One thought: could TimeSpan timeout be changed to TimeSpan? timeout = null? This would allow you to fall back to the default timeout as is possible with the int timeout APIs.
@rhuijben Any thoughts? If we want to change the API shape, this API must be re-reviewed.
Activity
danmoseley commentedon Mar 28, 2022
Updated to match what was approved.
deeprobin commentedon Mar 28, 2022
@danmoseley Thanks. I removed the trailing
+. Can you remove theuntriagedlabel?teo-tsirpanis commentedon Mar 28, 2022
How about returning
ValueTaskor acceptingMemory<byte>? In the latter casePingReply.Buffermight need taking a look at. I haven't understood whether it contains the original buffer passed to the method. If it does, we can ignore it when constructing the resulting ping reply.rhuijben commentedon May 8, 2022
Ping will almost always wait, so I think
Task<>is fine. No need to optimize the no wait casesakno commentedon Jun 8, 2022
IMO, this proposal can be combined with #34856
deeprobin commentedon Jun 8, 2022
@sakno Could be. But this is already approved and #34856 is not.
madelson commentedon Jul 15, 2022
I have some interest in working on this.
One thought: could
TimeSpan timeoutbe changed toTimeSpan? timeout = null? This would allow you to fall back to the default timeout as is possible with theinttimeout APIs.deeprobin commentedon Jul 15, 2022
@danmoseley can you assign this issue to him?
@rhuijben Any thoughts? If we want to change the API shape, this API must be re-reviewed.
Add CancellationToken-accepting overloads for SendPingAsync (initial …
Add CancellationToken-accepting overloads for SendPingAsync (dotnet#7…