Useful threading for pause/unpause and terminating
Project description
Threading for human.
Features
Some of main features:
- Support pause/unpause
- Support termination thread non-preemtively
Installation
You can install xthread from PyPi
$ pip install xthread
Usage
import time
from xthread import Thread
def target(executor):
print("Running...")
time.sleep(1)
thread = Thread(target)
# Running...
# Running...
thread.pause()
thread.unpause()
# Running...
# Running...
thread.stop()
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
xthread-0.0.2.tar.gz
(6.5 kB
view hashes)