[Ipython-tickets] [IPython] #242: asynclient.AsynTaskClient.get_task_result behavior
IPython
ipython-tickets@scipy....
Fri Apr 4 11:13:15 CDT 2008
#242: asynclient.AsynTaskClient.get_task_result behavior
----------------------+-----------------------------------------------------
Reporter: yichun | Owner: bgranger
Type: defect | Status: closed
Priority: normal | Milestone:
Component: ipython1 | Version:
Severity: normal | Resolution: wontfix
Keywords: |
----------------------+-----------------------------------------------------
Changes (by bgranger):
* status: new => closed
* resolution: => wontfix
Comment:
Ahh, you want to call get_task_result like this:
d = client.get_task_result(id, block=True)
Now d is a deferred that will fire with the actual result (not None):
block=False -> the underlying method won't block for the result if it is
not ready, instead, it will just return None
block=True -> return a deferred to the actual result - ie, the deferred
will "block" for the result.
I know this language is a little confusing as there is not really any true
blocking going on with deferred.
Also, are you using the version of ipython1 from svn or the new bzr
branch?
--
Ticket URL: <http://ipython.scipy.org/ipython/ipython/ticket/242#comment:1>
IPython <http://ipython.scipy.org>
The IPython interactive Python system
More information about the Ipython-tickets
mailing list