feat($interval): allow function to calculate the delay for each iteration.