Skip to content

Added Future::flatten #443

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 4 commits into from
Nov 7, 2019
Merged

Conversation

abhishekc-sharma
Copy link
Contributor

My initial attempt at implementing Future::flatten (#404)

Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

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

This is very much heading in the right direction. Left a small comment about internals. Thanks heaps for picking this up!

@ghost ghost requested a review from taiki-e November 3, 2019 12:43
@ghost
Copy link

ghost commented Nov 3, 2019

I'd be okay with using unsafe methods on the Pin type. This Future combinator would then be just a special case with a little bit of unsafe code that does pin projections.

Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

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

Looks great! -- going to create a separate PR for @taiki-e's comment in a follow-up PR. Fantastic work @portgasd666!

@yoshuawuyts yoshuawuyts merged commit 9a88056 into async-rs:master Nov 7, 2019
@k-nasa k-nasa mentioned this pull request Nov 11, 2019
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.

4 participants