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
Close
Hashes for multithreaddecorator-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7082e283646c107155e20566bba5dadc2104b0f4f1b0070f43603f5c5c248db7 |
|
MD5 | eff69ea15030c0def6e456bfb04b47d7 |
|
BLAKE2b-256 | eced4821fa94a1fc56af1e363b34580e6bde1ed935ff5091ec972d4f2b3632a9 |