-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
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:
Line 48 in 83b09cb
| fn try_now(&self) -> Result<Instant<Self>, Error>; |
Line 115 in 83b09cb
| pub fn elapsed(&self) -> Result<Dur, TimeError> |
Line 140 in 83b09cb
| pub fn remaining(&self) -> Result<Dur, TimeError> |
Line 163 in 83b09cb
| 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
rmja, scootermon, codehippo and js2xxx
Metadata
Metadata
Assignees
Labels
No labels