Now that GATs are stable, async support can be added on stable. This would really help when writing async code.
Some of the APIs that would benefit from this are:
|
fn try_now(&self) -> Result<Instant<Self>, Error>; |
|
pub fn elapsed(&self) -> Result<Dur, TimeError> |
|
pub fn remaining(&self) -> Result<Dur, TimeError> |
|
pub fn wait(self) -> Result<Timer<'a, OneShot, Armed, Clock, Dur>, TimeError> { |
The async APIs should probably be made parallel to the existing APIs and not replace them
Now that GATs are stable, async support can be added on stable. This would really help when writing async code.
Some of the APIs that would benefit from this are:
embedded-time/src/clock.rs
Line 48 in 83b09cb
embedded-time/src/timer.rs
Line 115 in 83b09cb
embedded-time/src/timer.rs
Line 140 in 83b09cb
embedded-time/src/timer.rs
Line 163 in 83b09cb
The async APIs should probably be made parallel to the existing APIs and not replace them