[Twisted-Python] Synchronization techniques
itamar at itamarst.org
Tue Apr 3 20:42:06 EDT 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
More information about the Twisted-Python