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

Further improvements #34

Open
wants to merge 3 commits into
base: next
Choose a base branch
from
Open

Further improvements #34

wants to merge 3 commits into from

Conversation

tronta
Copy link
Contributor

@tronta tronta commented Jan 5, 2023

Some further suggestions when reading through the book.

Copy link
Member

@AaronErhardt AaronErhardt left a comment

Choose a reason for hiding this comment

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

Looks good overall.

src/threads_and_async.md Outdated Show resolved Hide resolved
src/threads_and_async.md Outdated Show resolved Hide resolved
The only drawback of this solution is that not all async libraries are fully compatible with the GLib executor, since they must use Tokyo.
A drawback of this solution is that you only can use libraries which support Tokio, as the GLib executor depends on it.
Copy link
Member

Choose a reason for hiding this comment

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

Actually, Glib doesn't depend on tokio, but many async crates do. For example, using reqwest in future on a GLib executor will panic because it needs some tokio-specific features. This is not obvious for beginners because it should be as simple as using async/await but sadly that's not true in reality.

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.

2 participants