utility to create thread.
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
k3thread-0.1.3.tar.gz
(3.9 kB
view hashes)