Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for loopback, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size loopback-0.0.2-py2.py3-none-any.whl (3.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size loopback-0.0.2.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page