-
Hi, I'm new to I need to sync some data from my DB to I imagine adding Any pointers for me? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can you explain what you mean by "safe manner"? If you mean protection against data races, assignment to state via indexing ( |
Beta Was this translation helpful? Give feedback.
Can you explain what you mean by "safe manner"? If you mean protection against data races, assignment to state via indexing (
state["something"] = "some value"
) and via attribute (state.something = "somevalue"
) are protected with a lock making it thread safe. As for "async safe", nothing special has to be done because there is no context switching / async operations inside the setters.