Expose the time remaining in HHWheelTimer::Callback
authorJody Ho <jodyho@fb.com>
Thu, 16 Nov 2017 07:23:02 +0000 (23:23 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 16 Nov 2017 07:45:06 +0000 (23:45 -0800)
commit8b51694b56db79f30fe20cb6c019d5d28c030ec4
tree5758c9376fe6296ff96b4e57a1f6dc295ba66210
parent54b16a23784d48f1a3b56ff0c33bdf7fdfe46355
Expose the time remaining in HHWheelTimer::Callback

Summary:
We would like to know the time remaining for a scheduled timeout to decide
whether a new event should override the scheduled timeout.

Reviewed By: yfeldblum

Differential Revision: D6334067

fbshipit-source-id: f172d5cd7fc804db5fd53a42d06cadfddf857e22
folly/io/async/HHWheelTimer.h
folly/io/async/test/HHWheelTimerTest.cpp