Skip to content

Async supportΒ #129

@diondokter

Description

@diondokter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions