Skip to content

Thread manager and decorator for asynchronous background function execution

Notifications You must be signed in to change notification settings

vpuhoff/loopback

Repository files navigation

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:

About

Thread manager and decorator for asynchronous background function execution

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published