Add a short description here!
Project description
Scheduled Thread Pool Executor
Scheduled Thread Pool Executor implementation in python
Makes use of delayed queue implementation to submit tasks to the thread pool.
Usage
from scheduled_thread_pool_executor import ScheduledThreadPoolExecutor
scheduled_executor = ScheduledThreadPoolExecutor(max_workers=5)
scheduled_executor.schedule(task, 0) # equals to schedule once, where task is a callable
scheduled_executor.schedule_at_fixed_rate(task, 0, 5) # schedule immediately and run periodically for every 5 secs
scheduled_executor.schedule_at_fixed_delay(task, 5, 10) # schedule after 5secs (initial delay) and run periodically for every 10secs
Note
This project has been set up using PyScaffold 4.1.1. For details and usage information on PyScaffold see https://pyscaffold.org/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file scheduled_thread_pool_executor-1.0.2.tar.gz
.
File metadata
- Download URL: scheduled_thread_pool_executor-1.0.2.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 887f4651a8597a86a6223f1311b5792dbc81190151995e0b9bcdf848d4ce5d10 |
|
MD5 | f7ba94fc91fcab7064c04e0e72f1d31b |
|
BLAKE2b-256 | 43da6acf59532e084bd9847082f0c1f264c2bf64d512f00ca7d8990ee856225c |
File details
Details for the file scheduled_thread_pool_executor-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: scheduled_thread_pool_executor-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecbd13823dbbac1a0ca50aedf41f032cc06e78ab2f1b479586dd7848d42a0937 |
|
MD5 | 24e6f972ada422fa7dd9d5fb80914c97 |
|
BLAKE2b-256 | 3071fb0d928a2e7fe788e9dab468f30d909726492a59dd3712a3d61d65998132 |