-
Notifications
You must be signed in to change notification settings - Fork 0
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
Value sharing (From BaseApp) #109
Comments
process/thread shared values (class attribute)BaseAppに
|
SharedValueHolder値を共有する際のフォーマットを統一できます。必ずname属性が付くので @dataclasss
class SharedValueHolder:
name:str
obj: Any |
実装しません。 |
Register Process/Thread Shared ValuesOverride method. |
get Shared Values (Process/Thread)
Method名前を指定して取得します。アプリケーションの木構造をもとにドット
Example以下のようにアプリケーション全体が構成され、値が共有されているとします。
このとき、MAINアプリケーションにおける MAIN.getSharedValue("shutdown") -> ReadOnlyValue
MAIN.getSharedValue(".lock") -> Lock
MAIN.getSharedValue("..shutdown") -> ReadOnlyValue
MAIN.getSharedValue(".App0.int_value") -> 10 また、MAIN.App1.App1_1においても以下のようになります。 App1_1.getSharedValue(".bool_value") -> True
App1_1.getSharedValue("MAIN.lock") -> Lock
App1_1.getSharedValue("..str_value") -> "apple"
App1_1.getSharedValue("..App1_2.float_value") -> 1.0 |
Value sharing
Regarding #101
Implementing value sharing methods such as
setThreadSharedValues
and etc...Originally posted by @Geson-anko in #16 (comment)
The text was updated successfully, but these errors were encountered: