Metadata-Version: 2.1
Name: asinc
Version: 0.1.0
Summary: asyncio util library
License: MIT
Author: INSOFT s.r.o.
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Description-Content-Type: text/markdown

# Asyncio util library

## periodic_call
Allows periodically execute an awaitable incorruptible with event.

```python
import signal
import asyncio
from asinc import periodic_call


async def run():
    stop_event = asyncio.Event()
    signal.signal(signal.SIGINT, lambda: stop_event.set())
    
    await periodic_call(lambda: asyncio.sleep(1), stop_event, 10)
```
