Thread manager and decorator for asynchronous background function execution.
Project description
loopback
Thread manager and decorator for asynchronous background function execution
Simple usage in code:
from loopback import manager, loop
from time import sleep
@loop(manager, interval = 1)
def threaded_function(arg):
print("running ")
sleep(arg)
return 'OK'
while True:
print(threaded_function(4))
sleep(1)
Source Code:
Travis CI Deploys:
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
loopback-0.0.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for loopback-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 111743a5082062430cdf59e4d1fdbf4035e1dd3468e6e1e98ecd75749cd227c5 |
|
MD5 | a52c15414fc5c919590760f5d42fc6f1 |
|
BLAKE2b-256 | 44290834686cf975afdfa9e2265855cda2cabc5c0cf741eda2d9f0733c6dcd7c |