Table of Contents

Method ListStreamNamesAsync

Namespace
NATS.Client.JetStream
Assembly
NATS.Client.JetStream.dll

ListStreamNamesAsync(string?, CancellationToken)

List stream names.

IAsyncEnumerable<string> ListStreamNamesAsync(string? subject = null, CancellationToken cancellationToken = default)

Parameters

subject string

Limit the list to streams matching this subject filter.

cancellationToken CancellationToken

A CancellationToken used to cancel the API call.

Returns

IAsyncEnumerable<string>

Async enumerable list of stream names to be used in a await foreach loop.