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 details)
Built Distribution
File details
Details for the file loopback-0.0.2.tar.gz
.
File metadata
- Download URL: loopback-0.0.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.6.7 Linux/4.15.0-1028-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c919f2d661455d4d6a663a1976f0ea80f5005f65666a71d6ed012789a0d723d4 |
|
MD5 | 5e107d9b6c09c7f4d553d8fe0135c0b9 |
|
BLAKE2b-256 | ce7e1b3632334de37dbfecea5b207db6d93521bd8fc4cdd82952ab5e88048e34 |
File details
Details for the file loopback-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: loopback-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.6.7 Linux/4.15.0-1028-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d743d488619cffcf4b4f218a1857c67db5d8c55cebd8d371484ae6f7a3914e0 |
|
MD5 | c3304007f7656925577b1d89cde62e9c |
|
BLAKE2b-256 | ebf634d772eda4abc9712920a86b2f04a401b484226f1cdbd4da97b93b4638dc |