futures-locks
Futures-aware lock primitives
0.7.1
12M downloads/mo
#2763 most downloaded on crates.io
asomers/futures-locks
What this package is like to depend on
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 9 days to 1.2 years
Nearly every release is documented
notes for 12 of 13 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
13 releases · first in 2018
0 releases in the last 12 months
see the full history below
Release timeline
13 releases · Jun 2018 to Dec 2022Releases
latest 13-
0.7.107 Dec 2022Release notes
Open source →- The published package on crates.io now includes functional tests. No user-visible changes. (#53)
-
0.7.019 Nov 2021Release notes
Open source →Added
Changed
-
Updated to Tokio 1.0. Crates needing Tokio 0.2 must stay on the 0.6 branch. (#42)
-
Mutex::try_lock,RwLock::try_read, andRwLock::try_write, now return a dedicated error type instead of(), and it implementsstd::error::Error. (#41)
Fixed
- Fixed a soundness issue with
RwLock: it shouldn't implementSyncunless its inner type also does. (#45)
Removed
-
-
0.6.007 Sep 2020Release notes
Open source →Added
Changed
- Updated to
std::future.futures-locksno longer works withfutures-0.1. Forfutures-0.1-based applications, continue to use the 0.5 branch. Most methods have similar interfaces. However, theIntoFuturetrait no longer exists in thestd::futureworld. AndFuture<T>doesn't implementFrom<T>(though I don't know why it couldn't). SoMutex::with,RwLock::with_read, andRwLock::with_writenow take closures that returnimpl Future, instead ofimpl IntoFuture. Closure arguments that used to return something likeResult<T, E>should now returnfutures::future::ready<Result<T, E>>instead.
Fixed
Removed
- Updated to
-
0.5.004 Nov 2019Release notes
Open source →Added
- Derived
DefaultforMutexandRwLock(#22)
Changed
- Minimum compiler version has increased to 1.32.0 (#28)
Fixed
- Fixed panics after an unready Future gets dropped (#24)
- Derived
-
0.4.024 Aug 2019 -
0.3.330 Jan 2019 -
0.3.230 Jan 2019 -
0.3.126 Dec 2018 -
0.3.028 Jun 2018Release notes
Open source →Added
- Added
Mutex::with_local,RwLock::with_read_local, andRwLock::with_write_localfor non-SendFutures. (#7)
Changed
Mutex::with,RwLock::with_read, andRwLock::with_writenow require their Futures to beSend. They also can return errors. (#7)- Methods enabled with the tokio feature now return a Future type equivalent to the one returned by the provided closure. (#6)
Fixed
Mutex::with,RwLock::with_read, andRwLock::with_writenow work with all Tokio Runtimes. (#7)
- Added
-
0.2.118 Jun 2018 -
0.2.018 Jun 2018Release notes
Open source →Added
- Added methods for running critical code in its own task. These methods require Tokio. (#3)
- Implemented
Futurefor all future types, even when the wrapped type is unsized.
-
0.1.107 Jun 2018Release notes
Open source →Added
Changed
- Futures should do nothing until polled. (#2)
- Fixed potential deadlocks when dropping Futures without first polling them. (#1)
Fixed
Removed
-
0.1.005 Jun 2018Nothing published for this version