Table of Contents

Method PingAsync

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

PingAsync(CancellationToken)

Send PING command and await PONG. Return value is similar as Round Trip Time (RTT).

ValueTask<TimeSpan> PingAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A CancellationToken used to cancel the command.

Returns

ValueTask<TimeSpan>

A ValueTask<TResult> that represents the asynchronous round trip operation.