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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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