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 details)

Uploaded Source

File details

Details for the file multithreaddecorator-0.0.2.tar.gz.

File metadata

File hashes

Hashes for multithreaddecorator-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e04b4ef09fc1e5b76f8ffa036f4548f74c3ce946a9ad0b0656d61ef491b934e1
MD5 6d8307dbd6194ea72e21770e3c0c16f1
BLAKE2b-256 556825bbcb95f8b5e286ee2babc50b82d6e773695fc3d73623728cae0ab5d7c0

See more details on using hashes here.

Supported by

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