Change Clock
trait to require interior mutable state?
#32
Labels
discussion
Something that needs more discussion
Clock
trait to require interior mutable state?
#32
I believe this this change must be made (
now(&mut self)
-->now(&self)
) or everyTimer
function that needs to access the clock must be passed a &mut of the clock. I don't like the latter for the following reasons:Timer
I think the last item is the greatest concern. What do you think @eldruin? How much more difficult would this make implementation? In my example implementation (using peripheral [not external]) timers, it doesn't change anything as the peripherals are all interior mutable already.
The text was updated successfully, but these errors were encountered: