Skip to main content

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


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)

Uploaded Source

Built Distributions

better_threads-0.2.2-py3.9.egg (6.4 kB view hashes)

Uploaded Source

better_threads-0.2.2-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

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