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

Macro for combining outputs #341

Open
andrzejressel opened this issue Aug 22, 2024 · 0 comments
Open

Macro for combining outputs #341

andrzejressel opened this issue Aug 22, 2024 · 0 comments

Comments

@andrzejressel
Copy link
Owner

andrzejressel commented Aug 22, 2024

let output1: Output<String> = ???
let output2: Output<i32> = ???
output!{
   SomeObject {
      string_field: output1,
      int_field: output2,
   }
}

should be converted to

let output1: Output<String> = ???
let output2: Output<i32> = ???
Output::combine(output1, output2, |o1, o2| {
   SomeObject {
      string_field: o1,
      int_field: o2,
   }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant