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
NatsObjWatchOptsWatch options
cancellationToken
CancellationTokenA CancellationToken used to cancel the API call.
Returns
- IAsyncEnumerable<ObjectMetadata>
An async enumerable object metadata to be used in an
await foreach