You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
368 B

extern crate trpl; // required for mdbook test
fn main() {
trpl::run(async {
// ANCHOR: here
let a = async { 1u32 };
let b = async { "Hello!" };
let c = async { true };
let (a_result, b_result, c_result) = trpl::join!(a, b, c);
println!("{a_result}, {b_result}, {c_result}");
// ANCHOR_END: here
});
}