ThreadPoolExecutor with the ability to bump waited futures to the front
Project description
tpe_prio
Use like a regular concurrent.futures.ThreadPoolExecutor
except there is now a
bump(fut)
method. During execution, the deque gets rotated and put back, so
it is possible that workers will pick up a non-optimal next choice for a small
window of time.
License
tpe_prio is copyright Tim Hatch, and licensed under
the MIT license. I am providing code in this repository to you under an open
source license. This is my personal repository; the license you receive to
my code is from me and not from my employer. See the LICENSE
file for details.
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 tpe-prio-0.1.0.tar.gz
.
File metadata
- Download URL: tpe-prio-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aa4837d72ad87951d32db10f2e1395647387e038a8a6f7dc677fc447e1fbdda |
|
MD5 | bfaee840e4d33464eb465b88aeab2a75 |
|
BLAKE2b-256 | 93931382a0c8c42648dfdea0e88ed38493542395ce1b0ef17509a4f88f96eac0 |
File details
Details for the file tpe_prio-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: tpe_prio-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdf44ddb92235d588ae7ec21c7cc6d922a221ccc1eca7bce7d515902a3ef6b6d |
|
MD5 | fedd74c195eaec6ad40342296d0843fc |
|
BLAKE2b-256 | 2804d984fd93dfa6baae5ccd67c632a831ebcc113fec306fc6e7ac520fb91678 |