×

Read write lock for asyncio. A RWLock maintains a pair of associated locks, one for read-only operations and one for writing. The read lock may be held simultaneously by multiple reader tasks, so long as there are no writers. The write lock is exclusive. Whether or not a read-write lock will improve performance over the use of a mutual exclusion lock depends on the frequency that the data is read compared to being modified. For example, a collection that is initially populated with data and thereafter infrequently modified, while being frequently searched is an ideal candidate for the use of a read-write lock. However, if updates become frequent then the data spends most of its time being exclusively locked and there is little, if any increase in concurrency.

Uploaded Mon Mar 31 20:40:11 2025
md5 checksum 8cf9d26ba15070472b35d6f2e1e3e450
arch x86_64
build py310h06a4308_0
depends python >=3.10,<3.11.0a0
license Apache-2.0
license_family Apache
md5 8cf9d26ba15070472b35d6f2e1e3e450
name aiorwlock
platform linux
sha1 fe28b0708835e67309b1f30a516a3af621b95c19
sha256 5ab8a47947acffc65032fdbea350ac54fc00c4ddcf6c6a07d4d6d854347f4890
size 17959
subdir linux-64
timestamp 1677738263770
version 1.3.0