WithSleepDuration(Func<int, TimeSpan>) Method