文件名称:aioflock:asyncio文件锁定实现(基于fcntl.flock)
文件大小:5KB
文件格式:ZIP
更新时间:2024-06-02 00:59:01
Python
aioflock:对asyncio的文件锁定支持(基于fcntl.flock) 例子: from aioflock import LockFilename lock = LockFilename ( '/tmp/test_lock' ) yield from lock . acquire () .. inside lock .. lock . release () 有陈述: from aioflock import LockFilename with ( yield from LockFilename ( '/tmp/test_lock' )): .. inside lock .. 可以使用超时: from aioflock import LockFilename , LockFilenameTimeout try : with ( yield from Lo
【文件预览】:
aioflock-master
----setup.py(1KB)
----.gitignore(49B)
----.travis.yml(192B)
----LICENSE.txt(557B)
----README.rst(1KB)
----tests()
--------__init__.py(23B)
--------test_simple.py(1KB)
----test_requirements.txt(67B)
----tox.ini(137B)
----aioflock()
--------__init__.py(98B)
--------lock.py(3KB)
--------exceptions.py(46B)