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

runtime: add block_on_all #398

Merged
merged 1 commit into from
Jun 15, 2018
Merged

runtime: add block_on_all #398

merged 1 commit into from
Jun 15, 2018

Conversation

Keruspe
Copy link
Contributor

@Keruspe Keruspe commented Jun 8, 2018

No description provided.

Copy link
Member

@carllerche carllerche left a comment

Choose a reason for hiding this comment

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

Thanks! One quick inline comment.

R: Send + 'static,
E: Send + 'static,
{
let (tx, rx) = futures::sync::oneshot::channel();
Copy link
Member

Choose a reason for hiding this comment

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

Could this use block_on instead of creating the channel?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, obviously. That's what I was going for in the first place, not sure why I didn't do that

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
@Keruspe
Copy link
Contributor Author

Keruspe commented Jun 14, 2018

(Forced-push a new version with the fix, btw)

@carllerche
Copy link
Member

Thanks!

@carllerche carllerche merged commit 71c8f56 into tokio-rs:master Jun 15, 2018
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.

None yet

2 participants