-
Notifications
You must be signed in to change notification settings - Fork 24
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
Feature/async #108
Feature/async #108
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Nice that we can install in parallel now, nice job!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one small comment but by no means a blocker. Glad you were able to get this experiment fleshed out and working!
for _ in 0..installable_items { | ||
let names = rx.recv().await.unwrap(); | ||
exports.extend(names); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for _ in 0..installable_items { | |
let names = rx.recv().await.unwrap(); | |
exports.extend(names); | |
} | |
while let Some(names) = rx.recv().await { | |
exports.extend(names); | |
} |
What you have is fine of course, but maybe this is a bit cleaner?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried this at first, but it was not working correctly (not really sure why). If I use the while
loop, the installation will never end, as it gets stuck in the while
loop.
Make installation async