Skip to content

feat(time): additional arithmetic operations and sleep_until - #709

Open
romancardenas wants to merge 1 commit into
tier4:mainfrom
romancardenas:time_arith
Open

romancardenas wants to merge 1 commit into
tier4:mainfrom
romancardenas:time_arith

Conversation

@romancardenas

Copy link
Copy Markdown

Description

While working with the asynchronous API, I noticed that some arithmetic operations methods were missing.
This PR includes the missing implementations, following the same fashion as in std::time::Instant.

I also added a new async fn wait_until function that asynchronously waits until a given instant is reached. This helps developing tasks with periodic-like behaviour.

How was this PR tested?

I am using these new features on a project I am using to get more experience with Awkernel. It works well so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant