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
===========
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file multithreaddecorator-0.0.2.tar.gz.
File metadata
- Download URL: multithreaddecorator-0.0.2.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e04b4ef09fc1e5b76f8ffa036f4548f74c3ce946a9ad0b0656d61ef491b934e1
|
|
| MD5 |
6d8307dbd6194ea72e21770e3c0c16f1
|
|
| BLAKE2b-256 |
556825bbcb95f8b5e286ee2babc50b82d6e773695fc3d73623728cae0ab5d7c0
|