Closed
Description
Pull request #67 adds a cancel
method that returns a Result
. We ended up discussing timer error handling in general there, but decided to move further discussion to a follow-up issue (this one).
I think we need to find answers to the following questions:
- Can starting a timer fail? Not in the cases I've seen so far, but there might be hardware out there were it could.
- Can waiting on a timer fail? This might fail due to user error (timer was never started).
- Are we willing to complicate the traits, if it allows us to catch user errors at compile time?