This is a question about Jane Street’s Incremental library.
I am trying to do this: I want to register future events using
step_function, and then advance time to a future time when possibly several alarms have already passed. Then I would like to trigger all of the alarms that have passed, in order (up to the configured precision) and fold over them. To be concrete, let’s say I want to get a new
Incremental.S.t which accumulates in a list all the times at which alarms have fired up to the current time.
I suspect this is not possible in Incremental? I did find functions to trigger all past alarms in Core_kernel.Timing_wheel but nothing is exposed in Incremental.