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

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.

Files for multithreaddecorator, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size multithreaddecorator-0.0.2.tar.gz (1.7 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