hazelcast / hazelcast/hazelcast-python-client

Get the state of a map, and subscribe for updates

Open
#162 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.