Re: [Twisted-Python] synchronous/asynchronous api: possible interface

Nov. 13, 2009
3:52 p.m.
On 04:03 pm, doug.farrell@gmail.com wrote:
I already mentioned SynchronousDeferred, so I guess you're not interested in that. :) The main other idea that comes to mind is, in the synchronous case, to start the reactor in a separate thread and leave it running. You can ask it to do things with reactor.callFromThread. Or maybe you can use twisted.internet.threads.blockingCallFromThread. Jean-Paul
5600
Age (days ago)
5600
Last active (days ago)
0 comments
1 participants
participants (1)
-
exarkun@twistedmatrix.com