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

Replace async_std with tokio #848

Merged
merged 8 commits into from
Nov 16, 2023
Merged

Replace async_std with tokio #848

merged 8 commits into from
Nov 16, 2023

Conversation

imobachgs
Copy link
Contributor

@imobachgs imobachgs commented Nov 3, 2023

Regarding async/await, Rust does not endorse a runtime. There are different alternatives, but the most popular are tokio, async-std and smol.

At the beginning of this project, we chose async-std because it was the default for zbus. However, zbus offers support for Tokio.

Taking into account that Tokio is the most used runtime in the Rust ecosystem, I am considering whether we should make the switch.

This pull request adapts the code to replace async-std with tokio. Sure, it deserves some discussion first, so I am opening it as a draft.

Testing

In addition to the existing tests (including CI), I am building an agama-live including the code in this tokio branch.

@coveralls
Copy link

coveralls commented Nov 3, 2023

Coverage Status

coverage: 75.011% (-0.05%) from 75.063%
when pulling 9236165 on tokio
into 51302ee on master.

Copy link
Contributor

@joseivanlopez joseivanlopez left a comment

Choose a reason for hiding this comment

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

LGTM

@imobachgs imobachgs merged commit 3f62e27 into master Nov 16, 2023
6 checks passed
@imobachgs imobachgs deleted the tokio branch November 16, 2023 07:13
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.

4 participants