A crate containing easier to use thread-safe types for the creation of larger thread safe systems.
SyncCell<T>
- A replacement forstd::cell::RefCell
andstd::cell::Cell
with an easier to use API thanstd::sync::RwLock
.HeldSyncCell<T>
- A cell that maintains a previous value until theupdate
method is called at which point any changes to the value are applied.
You can read the documentation at https://docs.rs/sync-cell/0.2.0/sync_cell/
To use SyncCell
and HeldSyncCell
add the following to the [dependencies]
section of your Cargo.toml
.
[dependencies]
sync-cell = "0.2.0"