k3thread

utility to create thread.


Keywords
thread
License
MIT
Install
pip install k3thread==0.1.3

Documentation

k3thread

Build Status Python package Documentation Status Package

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