Function decorators for asyncio synchronization primitives
Project description
aiodecorators
Function decorators based on asyncio Lock, Semaphore and BoundedSemaphore
Install
pip3 install aiodecorators
Usage
from aiodecorators import Lock
@Lock
async def f():
pass
from aiodecorators import Semaphore
@Semaphore(n)
async def f():
pass
from aiodecorators import BoundedSemaphore
@BoundedSemaphore(n)
async def f():
pass
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
aiodecorators-0.2.tar.gz
(1.5 kB
view hashes)
Built Distribution
Close
Hashes for aiodecorators-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44a21ab530a16d56a2a4517b5cc636c3120435019444094092c2a2e7c1eb8cf6 |
|
MD5 | 2e99c72b2bd7602d0f443b4be9f6128b |
|
BLAKE2b-256 | 405d2b5a34c36b3e184a32b74dc1fb99877a9e69454c88b894b1f68864cc6289 |