| NATS C Client with JetStream and Streaming support
    3.9.1
    The nats.io C Client, Supported by Synadia Communications Inc. | 
| Functions | |
| NATS_EXTERN natsStatus | kvWatcher_Next (kvEntry **new_entry, kvWatcher *w, int64_t timeout) | 
| Returns the next entry for this watcher.  More... | |
| NATS_EXTERN natsStatus | kvWatcher_Stop (kvWatcher *w) | 
| Stops the watcher.  More... | |
| NATS_EXTERN void | kvWatcher_Destroy (kvWatcher *w) | 
| Destroys the KeyValue watcher object.  More... | |
These functions allow to receive updates for key(s) on a given bucket.
| NATS_EXTERN natsStatus kvWatcher_Next | ( | kvEntry ** | new_entry, | 
| kvWatcher * | w, | ||
| int64_t | timeout | ||
| ) | 
Returns the next entry for this watcher. The entry may be NULL (with NATS_OK status) to indicate that the initial state has been retrieved.
If a thread is waiting on this call, it can be canceled with a call to kvWatcher_Stop.
| NATS_EXTERN natsStatus kvWatcher_Stop | ( | kvWatcher * | w | ) | 
Stops the watcher. Stopping a stopped watcher returns NATS_OK.
After this call, new and existing calls to kvWatcher_Next (that are waiting for an update) will return with NATS_ILLEGAL_STATE.
| w | the pointer to the kvWatcher object. | 
| NATS_EXTERN void kvWatcher_Destroy | ( | kvWatcher * | w | ) |