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
We can just add/remove watchers before calling cetcd_multi_watch* so far. It is not flexible enough. What I expect is add or remove watchers at any time including after starting watching.
The text was updated successfully, but these errors were encountered:
It is difficult to add/remove watchers dynamic after starting the multi_watch routine because curl is not thread-safety and it is complex and not expected to introduce a lock. I made it work by a more simple and reasonable way.
cetcd_multi_watch/cetcd_multi_watch_async pass an array of watchers as an argument.
cetcd_multi_watch/cetcd_multi_watch_async can be called multiple times with another array of watchers.
Now, with above mechanisms you can
Add / Remove watchers before calling cetcd_multi_watch*
Add more watchers and call cetcd_multi_watch* again
Stop any watcher after calling cetcd_multi_watch*, it will be freed after being stopped.
We can just add/remove watchers before calling cetcd_multi_watch* so far. It is not flexible enough. What I expect is add or remove watchers at any time including after starting watching.
The text was updated successfully, but these errors were encountered: