Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Student: I have a question, how does Watcher execute the callback function? #6

Open
zhaojinmeng opened this issue Jul 21, 2022 · 2 comments

Comments

@zhaojinmeng
Copy link

Student: I have a question, how does Watcher execute the callback function?

@hsluoyz
Copy link

hsluoyz commented Jul 21, 2022

@Nekotoxin
Copy link

@zhaojinmeng Hello. After set watcher for pycasbin, pycasbin will call the update function of the watcher after the polices changed. The update function will publish the message, then the subscribe thread will detected the message and call the callback function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants