Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Observer or Change Event #26

@ahorn42

Description

@ahorn42

Hi,

can you imagen of an easy way to subscribe to changes on the dictionary? Or of a way to extend the UltraDict to be able to subscribe for changes?

I have two processes sharing a configuration trough an UltraDict, but I would like to avoid polling the values every x seconds to ensure that both processes using the currently set configuration, if one of both changes some values. It would be nicer to have a callback function or something similar.

I am not a native python programmer, so maybe there are already other approaches for it in python, but I couldn't figure out something that I would assume could work in this scenario. What are your thoughts about that?

best regards,
ahorn

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions