https://github.com/pykit3/k3thread
utility to create thread.
https://github.com/pykit3/k3thread
thread
Last synced: 5 months ago
JSON representation
utility to create thread.
- Host: GitHub
- URL: https://github.com/pykit3/k3thread
- Owner: pykit3
- License: mit
- Created: 2020-06-13T13:01:37.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-08-28T12:38:33.000Z (9 months ago)
- Last Synced: 2025-09-28T08:25:46.866Z (8 months ago)
- Topics: thread
- Language: Python
- Homepage: https://blog.openacid.com
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# k3thread
[](https://travis-ci.com/pykit3/k3thread)

[](https://k3thread.readthedocs.io/en/stable/?badge=stable)
[](https://pypi.org/project/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
```python
>>> th = daemon(lambda :1, after=0.2)
```
# Author
Zhang Yanpo (张炎泼)
# Copyright and License
The MIT License (MIT)
Copyright (c) 2015 Zhang Yanpo (张炎泼)
[pykit3]: https://github.com/pykit3