Skip to content

Update tokio? #910

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

Merged
merged 7 commits into from
Jul 26, 2020
Merged

Update tokio? #910

merged 7 commits into from
Jul 26, 2020

Conversation

Kixiron
Copy link
Member

@Kixiron Kixiron commented Jul 25, 2020

  • Updates tokio to v0.2
  • Updates futures-util
  • Updates rusoto crates

With one runtime being used for S3 uploads via #909, it may work now?
Hopefully more successful than #799 and #758

@Kixiron Kixiron added S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed A-backend Area: Webserver backend labels Jul 25, 2020
@Kixiron Kixiron requested a review from jyn514 July 25, 2020 18:03
@jyn514 jyn514 added the P-high High priority label Jul 25, 2020
Copy link
Member

@jyn514 jyn514 left a comment

Choose a reason for hiding this comment

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

I'd like to make this wait in parallel before merging. Otherwise there's not much point in using async.

);
}

while let Some(result) = futures.next().await {
Copy link
Member

Choose a reason for hiding this comment

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

Same comment, this waits on each in serial. Can we wait in parallel instead? That was the whole point of switching to async in the first place.

Copy link
Member Author

Choose a reason for hiding this comment

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

This also doesn't wait in serial since the containing collection is a FuturesUnordered. Calling .poll_next() (and transitively .next()) polls all contained futures until a ready one is found

Copy link
Member

Choose a reason for hiding this comment

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

FuturesUnordered waits on all futures in itself concurrently.

Copy link
Member

Choose a reason for hiding this comment

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

I'm still not quite following ... but @Nemo157 is I think one of the authors of futures so I'll take his word for it 😆

Copy link
Member

Choose a reason for hiding this comment

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

@jyn514 jyn514 added S-waiting-on-author Status: This PR is incomplete or needs to address review comments and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Jul 26, 2020
@Kixiron Kixiron requested a review from jyn514 July 26, 2020 18:35
);
}

while let Some(result) = futures.next().await {
Copy link
Member

Choose a reason for hiding this comment

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

@jyn514 jyn514 merged commit 05d12ca into rust-lang:master Jul 26, 2020
@Kixiron Kixiron deleted the tokio-two-trillion branch July 26, 2020 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend Area: Webserver backend P-high High priority S-waiting-on-author Status: This PR is incomplete or needs to address review comments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants