Thread utilities for daemon threads and exception sending
Project description
k3thread
utility to create thread.
k3thread is a component of pykit3 project: a python3 toolkit set.
k3thread is utility to create and operate thread.
Start a daemon thread after 0.2 seconds::
>>> th = daemon(lambda :1, after=0.2)
Stop a thread by sending a exception::
import time
def busy():
while True:
time.sleep(0.1)
t = daemon(busy)
send_exception(t, SystemExit)
Install
pip install k3thread
Synopsis
>>> th = daemon(lambda :1, after=0.2)
Author
Zhang Yanpo (张炎泼) drdr.xp@gmail.com
Copyright and License
The MIT License (MIT)
Copyright (c) 2015 Zhang Yanpo (张炎泼) drdr.xp@gmail.com
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file k3thread-0.1.5.tar.gz.
File metadata
- Download URL: k3thread-0.1.5.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d2f30f2ae99cff8c2531572863eaf8b8d1675edc05a6a0107b0bd460601ce99
|
|
| MD5 |
9539b1a22cd807edbc4ef1769158c10a
|
|
| BLAKE2b-256 |
92a07f37d60426c8ec3704ccfafad2dbc97f6ed472fe14684c909876494e7b3e
|
File details
Details for the file k3thread-0.1.5-py3-none-any.whl.
File metadata
- Download URL: k3thread-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fec8824c6b9440e2b60ad60ba9e424e0b70d530f132b99e9227fb5376d4f819
|
|
| MD5 |
0fbcd95ddd79740c5d1c4dc7f1d43bc8
|
|
| BLAKE2b-256 |
3b6bc9887ef6b3305fafb7429e27d801a0293893805da9cff2f32f11ec876499
|