Skip to content

Error handling for timer traits #86

Closed
@hannobraun

Description

@hannobraun

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:

  1. Can starting a timer fail? Not in the cases I've seen so far, but there might be hardware out there were it could.
  2. Can waiting on a timer fail? This might fail due to user error (timer was never started).
  3. Are we willing to complicate the traits, if it allows us to catch user errors at compile time?

cc @therealprof @jonas-schievink

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions