Method GetBucketNamesAsync
- Namespace
- NATS.Client.KeyValueStore
- Assembly
- NATS.Client.KeyValueStore.dll
GetBucketNamesAsync(CancellationToken)
Get a list of bucket names
IAsyncEnumerable<string> GetBucketNamesAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenused to cancel the API call.
Returns
- IAsyncEnumerable<string>
Async enumerable of bucket names. Can be used in a
await foreach
loop.
Exceptions
- NatsJSException
There was an issue retrieving the response.
- NatsJSApiException
Server responded with an error.