You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I use a callback to watch for KV updates? Just like a normal NATS subscription.
Looking at the docs, it seems like currently my only option is to create a separate thread and call kvWatcher_Next in a loop, which is far from optimal =\
The text was updated successfully, but these errors were encountered:
No, there is no callback for a KV watcher. You have indeed to call Next in a loop. One could imagine a new kvWatchOptions that would be a callback that is invoked with each new entry. But note that even the Go client returns an object on which the user can call Updates() which is a Go channel to receive those updates. So there is no such callback in the Go client either.
Can I use a callback to watch for KV updates? Just like a normal NATS subscription.
Looking at the docs, it seems like currently my only option is to create a separate thread and call
kvWatcher_Next
in a loop, which is far from optimal =\The text was updated successfully, but these errors were encountered: