Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page