1 unstable release
0.2.0 | Dec 30, 2023 |
---|
#1017 in Concurrency
111 downloads per month
19KB
341 lines
Sync Cell
A crate containing easier to use thread-safe types for the creation of larger thread safe systems.
Included Types
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.
lib.rs
:
A module containing easier to use thread-safe types for the creation of larger thread safe systems.
Included Types
SyncCell
- A replacement forstd::cell::RefCell
andstd::cell::Cell
with an easier to use API thanstd::sync::RwLock
.HeldSyncCell
- A cell that maintains a previous value until theupdate
method is called at which point any changes to the value are applied.