Method DeleteAsync
DeleteAsync(CancellationToken)
Delete this consumer.
public ValueTask<bool> DeleteAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenA CancellationToken used to cancel the API call.
Returns
Remarks
After deletion this object can't be used anymore.
Exceptions
- NatsJSException
There was an issue retrieving the response.
- NatsJSApiException
Server responded with an error.
- NatsJSApiException
Server responded with an error.
- NatsJSException
There is an error sending the message or this consumer object isn't valid anymore because it was deleted earlier.