A package that provides extended control over threads
Project description
Better Threads
Ever wanted to pause, stop, resume or pipe data between threads? Well this module does exactly that.
Key features
- Pipe data between threads
- Pause, Resume and Stop threads
- Simple
Installing
Python 3.7 or higher is required
pip install better-threads
Quick example
More exmples https://github.com/ItsYasiru/Better-Threads/tree/master/examples
import time
from BetterThreads import ThreadPool
thread_pool = ThreadPool()
@thread_pool.thread()
def test_loop():
print("Loop running!")
time.sleep(1)
test_loop.start(test_loop)
time.sleep(5)
test_loop.terminate(test_loop)
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-2.0.5.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for better_threads-2.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81e4640b2f10d0e6b95347a0916b7e28a9e7f7b7faac7b5c8836fb4293045a8e |
|
MD5 | 80d8ed5b582c19fee006b2ebd48ee6d2 |
|
BLAKE2b-256 | 35f5ef6a9511d5a8780c0c70498000f68ac10602e47bd34ebd8d764140e00d13 |