asyncore.loop() blocks

Richie Hindle richie at entrian.com
Wed Nov 12 09:53:02 EST 2003


[F.G.]
> Is there a way to perform other operations while still looping with
> asyncore.loop() without spawning a new thread?

while something():
   asyncore.poll(timeout=0.1)  # Or other suitable timeout in seconds
   doOtherWork()

-- 
Richie Hindle
richie at entrian.com






More information about the Python-list mailing list