pub(crate) fn ceil_to_boundary(
time: i64,
anchor: i64,
interval: i64,
) -> Result<i64>Expand description
Computes the ceiling of time to the next schedule boundary aligned with anchor + k * interval.
All values are Unix timestamps in seconds.
Fallible: if the next boundary after time does not fit in i64, an
explicit error is returned instead of clamping to a non-phase value such as
i64::MAX.