Method GetStatusesAsync
- Namespace
- NATS.Client.KeyValueStore
- Assembly
- NATS.Client.KeyValueStore.dll
GetStatusesAsync(CancellationToken)
Gets the status for all buckets
public IAsyncEnumerable<NatsKVStatus> GetStatusesAsync(CancellationToken cancellationToken = default)Parameters
- cancellationTokenCancellationToken
- used to cancel the API call. 
Returns
- IAsyncEnumerable<NatsKVStatus>
- Async enumerable of Key/Value statuses. Can be used in a - await foreachloop.
Exceptions
- NatsJSException
- There was an issue retrieving the response. 
- NatsJSApiException
- Server responded with an error.