[Twisted-Python] sleeping in inlineCallbacks

Mikhail Terekhov termim at gmail.com
Wed Oct 7 21:08:28 MDT 2009


On Wed, Oct 7, 2009 at 6:04 PM, Phil Christensen <phil at bubblehouse.org>wrote:

>
> Paul's example will work just fine. Also, AFAIK there's no existing
> twisted function to do replicate an asynchronous sleep() in this way.
>
> -phil
>

What about Deferred.setTimeout?
http://twistedmatrix.com/documents/current/api/twisted.internet.defer.Deferred.html#setTimeout
IMHO it solves similar problem.

-- 
Mikhail Terekhov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20091007/72e3b0a0/attachment.html>


More information about the Twisted-Python mailing list