Make request pool use a scheduler
tock-ibm opened this issue · comments
Yoav Tock commented
have a ticker emit time into a channel, and another thread read the time and scan events for deadline.
Possible advantage - better control of timing in tests, we can speed-up or slow down time as we wish.
On the other hand this is more complicated, and has no clear benefit in production.
This can be applied to both RequestPool and Heartbeat monitor.
yacovm commented
Update: Now the heartbeat monitor uses a time channel, and all we are left is to make the request pool use a scheduler.