Method PingAsync
PingAsync(CancellationToken)
Send PING command and await PONG. Return value is similar as Round Trip Time (RTT).
public ValueTask<TimeSpan> PingAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenA CancellationToken used to cancel the command.
Returns
- ValueTask<TimeSpan>
A ValueTask<TResult> that represents the asynchronous round trip operation.