-
How can I set a global state variable (using |
Beta Was this translation helpful? Give feedback.
Answered by
ealmloff
Apr 3, 2024
Replies: 1 comment 1 reply
-
Most methods to write to signals require |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wackazong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Most methods to write to signals require
&mut self
to avoid overlapping reads and writes to the same signal, but you can opt-out of the extra checks with write_unchecked. If you only use that method inside the update function instead ofwrite
, it will implementFn