Future Thread
Creates a thread with Future attributes.
Based on (and actively uses) features from concurrent.futures module to easily start a function in a new background thread without the overhead of using a ThreadPoolExecutor, while still providing a Future style handle around said thread.
Usage:
import time
from future_thread import Future, DeferredFuture
def background():
time.sleep(10)
return True
fut = Future(background)
fut.result() # will block until thread finished
fut = DeferredFuture(background)
# do some other stuff
fut.start()
For more info on the Future object see: https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.Future
Metadata
Release files for future-thread 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| future_thread-1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for future_thread-1.0-py2.py3-none-any.whl |
Release files / future_thread-1.0-py2.py3-none-any.whl
| Download URL | future_thread-1.0-py2.py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
3b56d570e946b23aa40792904f8219e9aa92ed8096a36f79ff0c2d4a2a5b559b
|
|
BLAKE2b-256 checksum How to use checksums |
8236abe0a9268c28b4671a4bc79b6c23a063720ded76197246cc697d084eebea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for future-thread 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.