Erik Arvstedt 7357471b9e Consumer loop: make sleep duration dynamic
Make the sleep duration dynamic to account for the time spent in
loop_step.
This improves responsiveness when repeatedly consuming newly
arriving docs.

Use float epoch seconds (time.time()) as the time type for
MailFetcher.last_checked to allow for natural time arithmetic.
2018-05-11 14:14:50 +02:00
..
2015-12-20 19:23:33 +00:00
2016-08-20 18:14:33 +01:00
2016-02-21 00:14:50 +00:00
2016-02-27 20:19:09 +00:00