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
Close
Hashes for scheduled_thread_pool_executor-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0648e84d2b092b8df2687987ff583ab6df4efd102b6d93a5f0df4f189858477e |
|
MD5 | 54627c1c10fc1c197b9d2f00917cf26b |
|
BLAKE2b-256 | baa30249bbfe4c7f31f2de62d03b3ad26d19314a03177a1068e7a1f61e7b21e6 |
Close
Hashes for scheduled_thread_pool_executor-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4db31a2f879e726f5100749cd69f0618e0d008adc62f1aa5423be6ec5e52a390 |
|
MD5 | 5e1e51c1ffe42105e1092f5da2a80baa |
|
BLAKE2b-256 | 667d18674e1a892d75e33038825a64ac86998f4e13cd0172dc1f9e60687e5c7a |