Method RefreshAsync
RefreshAsync(CancellationToken)
Retrieve the consumer info from the server and update this consumer.
ValueTask RefreshAsync(CancellationToken cancellationToken = default)Parameters
- cancellationTokenCancellationToken
- A CancellationToken used to cancel the API call. 
Returns
Exceptions
- NatsJSException
- There was an issue retrieving the response. 
- NatsJSApiException
- Server responded with an error.