pika/pika — pull request #453 by abranches (2014-03-27 14:36:53+00:00)
Title: Save timeouts in ordered dict instead of dict

When more than one timeout callback is scheduled to run in SelectPoller, the order in which they will be executed is random because they're kept in a dict.

This simple change will make the callbacks be called in the same order they were scheduled.