hazelcast / hazelcast/hazelcast-python-client
Get the state of a map, and subscribe for updates
Open
Estimation: M
Priority: Medium
Source: Community
Type: Enhancement
- Dominant language
- Python
- Stars
- 116
- Forks
- 78
- Avg merge
- 10d 22h
- Merged PRs (30d)
- 1
Description
Hi
I'm wondering if there is any way around the following code to get the state of a map, and subscribe for updates:
```
for t in self._mymap.values(predicate):
on_update(t)
registration_id = self._mymap.add_entry_listener(include_value=True,
added_func=on_update,
predicate=predicate)
```
In particular, how to avoid a race condition here?
Contributor guide
Assessment
This issue has not been assessed yet.