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

Implement first_of and all functions for tuples. #6

Open
lucidd opened this issue Sep 28, 2014 · 0 comments
Open

Implement first_of and all functions for tuples. #6

lucidd opened this issue Sep 28, 2014 · 0 comments

Comments

@lucidd
Copy link
Owner

lucidd commented Sep 28, 2014

It woud look something like this.

fn first_of((a:Future<A>, b: Future<A>)) -> Future<A>;
fn all((a:Future<A>, b: Future<B>)) -> Future<(A, B)>;

first_of is restricted to tuples with only 1 type of Future. This is basically the same as the first_of for Vec but with better match ergonomics for the result.

Both functions should be available for for all tuple sizes.

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

No branches or pull requests

1 participant