Skip to main content

Python thread with results

Project description

thread-with-results

A python3 threading module with results.

You can easily get the thread's response result and return value like this

task = ThreadWithResult(
    func,
    *args,
    **kwds
)
task.start()
task.join()

# now you can get the results
print(task.done, task.timeout, task.error, task.results)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thread_with_results-1.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

thread_with_results-1.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file thread_with_results-1.0.1.tar.gz.

File metadata

  • Download URL: thread_with_results-1.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for thread_with_results-1.0.1.tar.gz
Algorithm Hash digest
SHA256 945a1b2bf8e017bc99c2b0620454399d991cc155e14c7cf395e57410aa0ffef7
MD5 879a822d97b73d2e5d8829b914c50293
BLAKE2b-256 a270c24eddbf5e62ed4f4cf254afbf354d12019bf83fac6ef9d731d0cf0b503d

See more details on using hashes here.

File details

Details for the file thread_with_results-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for thread_with_results-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef64a50a2d4719918ab871b7c8e4cc64335077a3380a1984dda32f53343b1a0a
MD5 0455471a2d81855a6b9f0f7b3627d576
BLAKE2b-256 05fc0a0e031345aaaa06bbeb7164aa140270df4a3a8310dec5e572434416a7bf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page