Table of Contents

Method WatchAsync

Namespace
NATS.Client.ObjectStore
Assembly
NATS.Client.ObjectStore.dll

WatchAsync(NatsObjWatchOpts?, CancellationToken)

Watch for changes in the underlying store and receive meta information updates.

public IAsyncEnumerable<ObjectMetadata> WatchAsync(NatsObjWatchOpts? opts = null, CancellationToken cancellationToken = default)

Parameters

opts NatsObjWatchOpts

Watch options

cancellationToken CancellationToken

A CancellationToken used to cancel the API call.

Returns

IAsyncEnumerable<ObjectMetadata>

An async enumerable object metadata to be used in an await foreach