[Orbit-python-list] non-blocking patch
Status: Inactive
Brought to you by:
tack
|
From: Adam O. <rh...@d2...> - 2002-01-30 09:28:49
|
Attached is a simple patch which adds an iterate() function, which is
like run() only it returns immedietly instead of blocking. :)
It works with my very limited testing (while 1: orb.iterate()), but
like shutdown(), it doesn't bother to check that the orb is actually
running, and can cause segfaults because it is. It'd be very nice if
it threw an exception, since that'd allow you to do:
try:
while 1:
orb.iterate()
except:
pass
which'd act the same as simply calling orb.run(). except it doesn't
sleep of course :)
--
Adam Olsen, aka Rhamphoryncus
|