[Twisted-Python] RE: waiting on transport return
Itamar Shtull-Trauring
itamar at itamarst.org
Fri Dec 9 14:39:26 EST 2005
On Fri, 2005-12-09 at 12:08 -0700, jmbenski at micron.com wrote:
> Maybe I misspoke. The way I understand it, is that deferreds do not
> get CPU time until the reactor resumes control.
No, reactor has nothing to do with Deferred's implementation.
> In my case I need the deferred to wait until my commandComplete
> function runs. Is the aDeferred.callback(result) the trigger that
> starts the deferred? If that is the case, then I understand how my
> current code is working and I understand that there IS no scheduler
> for the deferreds. Deferreds fire when a callback or errback function
> is called on them. End of story and no magic done behind the
> scenes.
Yes, exactly.
More information about the Twisted-Python
mailing list