Skip to main content

Package for launch functions in several threads

Project description

Description
===========
Util for launch any function in several threads.
Using:
import Queue
a = Queue.Queue()

@multithreaddecorator.MultiThreadDecorator(20)
def f(b):
import time
time.sleep(1)
b.put('one launch')
for i in range(1000):
f(a)

while not f.is_over(): pass

Project details


Download files

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

Source Distribution

multithreaddecorator-0.0.2.tar.gz (1.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page