🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

taskthread

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

taskthread

Simple thread module to repetitively perform a task on a single thread

1.4
PyPI
Maintainers
1

TaskThread

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.

Provided Classes

taskthread.TaskThread``` A sub-class of threading.Threadthat may execute a single task multiple times without the overhead of starting a new thread.taskthread.TaskInProcessException`` Exception that is thrown if a task is started on a thread that is already executing.

Installation

taskthread may be installed by executing pip install taskthread.

  • documentation <http://taskthread.readthedocs.org/en/latest/>_
  • source <http://github.com/hpcs-som/taskthread/>_

Changes

v1.4


* **ADD** ``TimerTask`` class that runs a repetitive task on a taskthread.


v1.3
  • Change task loop to support python 2.6.

v1.2


* Refactor the module so classes are defined in __init__.py.


v1.1
  • ADD TaskThread.join_task method that waits for the currently executing. task to complete.

v1.0


* First release

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts