Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: vexide_async crate organization #55

Merged
merged 5 commits into from
May 6, 2024

Conversation

Tropix126
Copy link
Member

@Tropix126 Tropix126 commented May 5, 2024

Describe the changes this PR makes. Why should it be merged?

  • Adds the task and time modules (mirrored off of tokio's crate structure more or less).
  • Re-exports Task and FallibleTask from async_task to allow users to store task handles without manually adding async_task as a dependency.
  • Refactors SleepFuture (now named Sleep) to internally store an Instant. This required some minor changes to the reactor.
  • Adds sleep_until which should be pretty self explanatory.
  • Updates docs.

@Tropix126 Tropix126 added the async Relates to the vexide async runtime. label May 5, 2024
Copy link
Member

@Gavin-Niederman Gavin-Niederman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for the most part.

packages/vexide-async/src/task.rs Outdated Show resolved Hide resolved
packages/vexide-async/src/time.rs Show resolved Hide resolved
packages/vexide-async/src/time.rs Outdated Show resolved Hide resolved
Copy link
Member

@Gavin-Niederman Gavin-Niederman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Gavin-Niederman Gavin-Niederman merged commit 4d0b4fb into main May 6, 2024
8 checks passed
@Gavin-Niederman Gavin-Niederman deleted the refactor/async-crate branch May 6, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
async Relates to the vexide async runtime.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants