[Twisted-Python] Synchronization techniques
Itamar Shtull-Trauring
itamar at itamarst.org
Tue Apr 3 18:42:06 MDT 2007
On Tue, 2007-04-03 at 17:07 -0400, Daniel Miller wrote:
> > twisted.internet.defer.DeferredLock and some of the related classes
> > are
> > what you ought to be using.
>
> Unfortunately that only gets me half way there. DeferredLock.acquire
> () returns a deferred. How do I return the result of a deferred from
> a PB remote_xxx() function?
Just return the Deferred from the remote_xxx() function.
As for Queue - you may as well just use a list. But probably you want
DeferredQueue.
More information about the Twisted-Python
mailing list