CMD + K

aiorwlock

Community

Read write lock for asyncio.

Installation

To install this package, run one of the following:

Conda
$conda install ad-testing::aiorwlock

Usage Tracking

1.3.0
1 / 8 versions selected
Downloads (Last 6 months): 0

Description

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.

About

Summary

Read write lock for asyncio.

Last Updated

Sep 8, 2023 at 01:16

License

Apache-2.0

Total Downloads

13