Method ListStreamsAsync
ListStreamsAsync(string?, CancellationToken)
Enumerates through the streams exists on the NATS JetStream server.
IAsyncEnumerable<INatsJSStream> ListStreamsAsync(string? subject = null, CancellationToken cancellationToken = default)
Parameters
subjectstringLimit the list to streams matching this subject filter.
cancellationTokenCancellationTokenA CancellationToken used to cancel the API call.
Returns
- IAsyncEnumerable<INatsJSStream>
Async enumerable of stream objects. Can be used in a
await foreachloop.
Exceptions
- NatsJSException
There was an issue retrieving the response.
- NatsJSApiException
Server responded with an error.