select: make Select.add() handle multiple buffered items.
Previously given something like: l = mitogen.core.Latch() l.put(1) l.put(2) s = mitogen.select.Select([l], oneshot=False) assert 1 == s.get(block=False) assert 2 == s.get(block=False) The second call would throw TimeoutError, because Select.add() only queued the receiver/latch once if it was non-empty, rather than once for each item as should happen.pull/612/head
parent
49a6446af8
commit
ecc570cbda
Loading…
Reference in New Issue