Skip to content

Conversation

@Jwashton
Copy link
Contributor

@Jwashton Jwashton commented Apr 6, 2025

Since version 0.10 ashpd has shipped with the tokio feature enabled by default. This slightly undermines this section of the book where the author is discussing non-tokio ways to run async code.

This commit adjusts the command for adding ashpd to exclude tokio and use the previously expected async-std feature instead.

Without this change, the example code compiles but panics with a there is no reactor running message. With this change, the example code runs successfully.

Since version 0.10 `ashpd` has shipped with the `tokio` feature enabled by default. This slightly undermines this section of the book where the author is discussing non-tokio ways to run async code.

This commit adjusts the command for adding `ashpd` to exclude `tokio` and use the previously expected `async-std` feature instead.

Without this change, the example code compiles but panics with a `there is no reactor running` message. With this change, the example code runs successfully.
@Jwashton Jwashton requested a review from Hofer-Julian as a code owner April 6, 2025 03:46
@bilelmoussaoui bilelmoussaoui merged commit 9bbb8c9 into gtk-rs:main Apr 6, 2025
2 checks passed
@Hofer-Julian
Copy link
Collaborator

Thanks @Jwashton !

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants