The package provides extended control over threads
Project description
Better Threads
Ever wanted to pause, stop, resume ot pipe data between threads? This python module extends control over threads. Example usage,
import time
from BetterThreads import ThreadPool
thread_pool = ThreadPool()
@thread_pool.thread()
def test_loop(data):
print("Loop running!")
time.sleep(1)
thread_pool.start(test_loop)
time.sleep(5)
thread_pool.stop(test_loop)
More exmples https://github.com/ItsYasiru/Better-Threads/examples
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
better-threads-0.2.2.tar.gz
(3.0 kB
view hashes)
Built Distributions
Close
Hashes for better_threads-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6322fd2762ebfd0117c208fee5fa6f54a787ba1f8268a29d06019b1eac51d316 |
|
MD5 | c8947f090c80279219e2d2dcdd753d4c |
|
BLAKE2b-256 | 7d84b7989a945791d0c92d7e657cecd92b4982a0db8eb73ce3590df5334557ee |