Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information