#cell #sync

sync-cell

A collection of easier to use thread-safe types for the creation of larger thread safe systems

1 unstable release

0.2.0 Dec 30, 2023

#1017 in Concurrency

Download history 54/week @ 2024-07-20 15/week @ 2024-07-27 114/week @ 2024-08-03 67/week @ 2024-08-10 55/week @ 2024-08-17 102/week @ 2024-08-24 104/week @ 2024-08-31 25/week @ 2024-09-07 10/week @ 2024-09-14 34/week @ 2024-09-21 12/week @ 2024-09-28 8/week @ 2024-10-05 87/week @ 2024-10-12 1/week @ 2024-10-19 23/week @ 2024-11-02

111 downloads per month

BSD-3-Clause

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 for std::cell::RefCell and std::cell::Cell with an easier to use API than std::sync::RwLock.
  • HeldSyncCell<T> - A cell that maintains a previous value until the update 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 for std::cell::RefCell and std::cell::Cell with an easier to use API than std::sync::RwLock.
  • HeldSyncCell - A cell that maintains a previous value until the update method is called at which point any changes to the value are applied.

No runtime deps