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.2.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for loopback-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d743d488619cffcf4b4f218a1857c67db5d8c55cebd8d371484ae6f7a3914e0 |
|
MD5 | c3304007f7656925577b1d89cde62e9c |
|
BLAKE2b-256 | ebf634d772eda4abc9712920a86b2f04a401b484226f1cdbd4da97b93b4638dc |