Skip to main content

Simple DeferredResult

Project description


This library provides simple deferred result.


Create deferred result:

def_result = DeferredResult[str]()

Then you can wait for the result using optional timeout:

result = def_result.wait(timeout=1)

While waiting for result other thread can set result:

def_result.resolve('Hello World')

After resolving result all threads waiting for result will be resumed.

It is also possible to reject deferred result:


In that case all threads waiting for result will be resumed and exception passed to reject will be thrown.

Project details

Download files

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

Files for deferred-result, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size deferred_result-0.1.1-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size deferred_result-0.1.1.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page