asyncore.loop() blocks

F.G.Testa testa at allos.sytes.net
Wed Nov 12 10:14:20 EST 2003


Thank you!

"Richie Hindle" <richie at entrian.com> wrote in message
news:l2i4rv084p81e9tghibbmo8f6qaoamuk51 at 4ax.com...
>
> [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
>
>
> -- 
> http://mail.python.org/mailman/listinfo/python-list
>








More information about the Python-list mailing list