If a transaction is made, e.g. put 3 key changes at once, then its not possible via a watcher to get this changes at once. Therefore, it is not possible to determine when related changes have been fully received.
Each event of the same response is processed by its own, a watcher is not able to detect the end of a transaction this way.
watcher.py:
for event in response.events:
await self._process_callback(
watcher_callback,
rtypes.Event(
event.type,
event.kv,
event.prev_kv if watcher_callback.prev_kv else None,
),
)
If a transaction is made, e.g. put 3 key changes at once, then its not possible via a watcher to get this changes at once. Therefore, it is not possible to determine when related changes have been fully received.
Each event of the same response is processed by its own, a watcher is not able to detect the end of a transaction this way.
watcher.py: