9 releases (5 breaking)
0.6.0 | Feb 1, 2023 |
---|---|
0.5.1 | Jan 16, 2023 |
0.4.0 | Jan 5, 2023 |
0.3.3 | Jan 3, 2023 |
0.1.1 | Dec 27, 2022 |
#218 in Concurrency
93 downloads per month
Used in 9 crates
(2 directly)
105KB
2K
SLoC
txn_lock
A futures-aware read-write lock for Rust which supports transaction-specific versioning
lib.rs
:
Utilities to support transactional versioning.
General-purpose locks and usage examples are provided
in the [map
], [scalar
], and [set
] modules.
More complex transaction locks (e.g. for a relational database) can be constructed using
the [semaphore
] module.
Dependencies
~2.5–6.5MB
~98K SLoC