EventLoop.iteration: no IO blocking if possible
authorZac Medico <zmedico@gentoo.org>
Mon, 31 Dec 2012 03:16:11 +0000 (19:16 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 31 Dec 2012 03:16:11 +0000 (19:16 -0800)
commit46fca763f7d08171d5c08c1c5fd1f40ce340ba56
tree8106bd838ef715e48aaa2e105f78030aad36aa6b
parenta3100be184ba1cac2f672f0a1cadcf01690c6d3f
EventLoop.iteration: no IO blocking if possible

Avoid blocking for IO if there are any timeout or idle callback events
available to process. This will prevent starvation of the idle
callbacks, which are much more common since commit
a3100be184ba1cac2f672f0a1cadcf01690c6d3f. We don't want these idle
callbacks to be delayed by long periods of IO blocking.
pym/portage/util/_eventloop/EventLoop.py