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