simple_mutex 2.0.0 simple_mutex: ^2.0.0 copied to clipboard
Simple but the best Mutex providing a exclusive write lock and shared read-only locks.
Change Log #
2.0.0 #
- Breaqking chage: Delete the
deliver
options.
Becauseawait
is not promised to yield control to other asynchronous code, the behavior ofdeliver = false
is not promised, as well. So, it is deleted and handmade waiting queue is added as a substitute of the microtask queue.
See dart-lang/language#2689.
1.5.1 #
- Fix typos in documents.
1.5.0 #
- Breaking change: make the
deliver
option from positional to named. - Add
timeLimit
optional parameters. - Relax the requierment of the dart SDK.
1.4.1 #
- Update the example.
1.4.0 #
- Add propeties
isLocked
andsharedCount
for test.
1.3.2 #
- Fix bug of example.
- Recomend
unawaited_futures
lint in README.md.
1.3.1 #
- Add example.
1.3.0 #
- Add return to
critical
andcriticalShared
.
1.2.1 #
- Rerun the formatter correctly.
- Update doc comments.
1.2.0 #
- Add a optional behavior to
lock
andcritical
. The new behavior yield execution right to existing users having requested exclusive/ shared locks.
1.1.1 #
- Refine documents.
1.1.0 #
- Add critical section feature.
1.0.0 #
- Initial version.