Simple thread module to repetitively perform a task on a single thread
Python thread module to repeat an predefined task on a thread mulitple times. A TaskThread is useful when a task needs to be repeated several times on a separate thread. Normal usage of the threading.Thread class would call for creation of a new thread each time the same task needs to be run. This module allows for repetitive tasks to be run multiple times on the same thread by having the thread wait until the task needs to be executed again.
- A sub-class of threading.Thread that may execute a single task multiple times without the overhead of starting a new thread.
- Exception that is thrown if a task is started on a thread that is already executing.
taskthread may be installed by executing pip install taskthread.
- ADD TimerTask class that runs a repetitive task on a taskthread.
- Change task loop to support python 2.6.
- Refactor the module so classes are defined in __init__.py.
- ADD TaskThread.join_task method that waits for the currently executing. task to complete.
- First release
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size taskthread-1.4.tar.gz (15.1 kB)||File type Source||Python version None||Upload date||Hashes View|