Async-based context manager that enforces FIFO processing
Project description
What is lockchain?
A LockChain allows you to create a chain of critical regions, executed sequentially. The underlying Lock from asyncio would actually enforce this with a dequeue, so this library is mostly unnecessary. Had I read the code first, I would have either not needed this or found a different solution. Until I actually think about it though, it’s still here.
It’s still useful for limiting access to some set of resources in a namespace. If no coroutine is blocking for some resource, it’s you may get to close that resource (or reset a rate limit.)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file lockchain-0.0.2.tar.gz
.
File metadata
- Download URL: lockchain-0.0.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbd5ecee77bbeb1c654d8ea740872392f97b77ec2d01f1c4acfb9ba756a8f7ff |
|
MD5 | 68872e838f42585733b71edf1fa362d6 |
|
BLAKE2b-256 | 4d5278e8437d0cff35e3304465446c7c96b13c2030590c9ec454605f4a9aa70e |