You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 19, 2024. It is now read-only.
Currently we use global variables to store state in a library crate. Is there a better way?
The Golem Cloud apparently uses a single thread1 but if we use tests we have to worry about multiple threads.
We currently use an immutable global variable with a Mutex while the Golem Cloud documentation uses a mutable global variable with unsafe.
Footnotes
"When running a Golem component you don’t have to care about concurrent access of global state - each worker based on the template runs completely separated." golem.cloud↩