rust-zookeeper icon indicating copy to clipboard operation
rust-zookeeper copied to clipboard

how to listen node children change(add or remove)?

Open Silentdoer opened this issue 4 years ago • 2 comments

like title

Silentdoer avatar Jan 06 '22 10:01 Silentdoer

Are you looking for get_children_w?

tgockel avatar Jan 06 '22 17:01 tgockel

Are you looking for get_children_w?

It can only watch once, can it watch node changes in a loop, such as zk.get_children_rw(rw is mean repeat watch)?

Silentdoer avatar Jan 07 '22 09:01 Silentdoer