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