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

DConfig接口支持异步 #375

Open
3 tasks
18202781743 opened this issue Sep 15, 2023 · 0 comments
Open
3 tasks

DConfig接口支持异步 #375

18202781743 opened this issue Sep 15, 2023 · 0 comments
Assignees
Labels
module | config module | 配置策略

Comments

@18202781743
Copy link
Contributor

18202781743 commented Sep 15, 2023

DConfig对获取的值做缓存处理,不阻塞GUI调用者

  • 调用者获取的是缓存值,当值修改后,触发信号通知调用方,实现方式类似dtkdeclarative内的DConfigWrapper处理,
  • 当DConfig支持异步接口后,移除掉dtkdeclarative内的DConfigWrapper相同功能,
  • DConfig的实现还是要做成允许在一个专有线程中调用DBus或文件读写接口,否则它有可能会阻塞当前线程
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module | config module | 配置策略
Projects
None yet
Development

No branches or pull requests

1 participant