Method UpdateAsync
UpdateAsync(StreamConfig, CancellationToken)
Update stream properties on the server.
public ValueTask UpdateAsync(StreamConfig request, CancellationToken cancellationToken = default)Parameters
- requestStreamConfig
- Stream update request to be sent to the server. 
- cancellationTokenCancellationToken
- A CancellationToken used to cancel the API call. 
Returns
Exceptions
- NatsJSException
- There is an error retrieving the response or this consumer object isn't valid anymore because it was deleted earlier. 
- NatsJSApiException
- Server responded with an error.