[Twisted-Python] blocking question

Konrad Rokicki konrad at wam.umd.edu
Thu Apr 17 23:15:06 EDT 2003


Hey everyone, newbie question:
Are there any Python/Twisted idioms for doing blocking? More specifically,
in a client I have a method to send a query to the server and another
method that gets called when the query is answered. Is there an easy way
to say "send the query then wait x seconds for it to return in this
function"?
It seems like blocking is taboo in twisted and if anyone has an
alternative I'd be glad to hear it. I guess I could do this
asynchronically but it would be a pain I think.
Thanks,
Konrad Rokicki





More information about the Twisted-Python mailing list