Stop a thread in a nasty way
Project description
stop-thread
Stop a thread in a nasty way
Install it
pip install stop_thread
# pip install git+https://github.com/ffreemt/stop-thread
# poetry add git+https://github.com/ffreemt/stop-thread
# git clone https://github.com/ffreemt/stop-thread && cd stop-thread
Use it
import threading
from stop_thread import stop_thread
ident = threading.current_thread().ident
stop_thread(ident)
# possibly follow up with some clean-up to properly terminate the thread
# e.g. thread.quit(); thread.wait()
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
stop-thread-0.1.0a0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for stop_thread-0.1.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d90e48b616b5b8ed777ceaab2cbc38d9aa67b39da8fbddd66cc533d154a2c2ee |
|
MD5 | f84cc44d9425b7fc2e5ee7804bac3a41 |
|
BLAKE2b-256 | 82d8c8c4764150aa7a37c7ebd719415c8c1ce61addf112e54cf935cb6357042c |