reader_writer_lock 0.1.0 copy "reader_writer_lock: ^0.1.0" to clipboard
reader_writer_lock: ^0.1.0 copied to clipboard

discontinued
outdated

Simple reader-writer-lock implementation upon mutex package

reader_writer_lock #

Simple reader-writer-lock implementation upon mutex package.

Usage #

The package realizes synchronized like syntax to reduce use of try-finally for releasing locks.

import 'package:reader_writer_lock/reader_writer_lock.dart';

final rwlock = ReaderWriterLock();

// reader-lock
await rwlock.readerLock(() async {
    // Do reader task here
});

// writer-lock
await rwlock.writerLock(() async {
    // Do writer task here
});
0
likes
0
pub points
2%
popularity

Publisher

unverified uploader

Simple reader-writer-lock implementation upon mutex package

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

mutex

More

Packages that depend on reader_writer_lock