radekvit/coffee_break

Taking a break for more than 251 minutes by calling `coffee_break!` for multiple times

Closed this issue · 3 comments

Taking a break for more than 251 minutes by calling `coffee_break!` for multiple times

In spite of there are some limits of break time, we can take a break for more than 251 minutes by calling coffee_break! for multiple times.

Here is a example:

fn work_stuff() {
    // I can take a break for  250 minutes × 100 ~ 416 hours
    for n in 1..100 {
        coffee_break!(250  minutes);
    }
}

I'm sorry for not providing a description of the issue. I'll rewrite it.

You can take a longer break by adding multiple coffee breaks, but that's allowed. It won't add a longer break with your code though, that's still just a single 250 minute break