Skip to main content

parallel

Macro parallel 

Source
macro_rules! parallel {
    ($($future:expr),+ $(,)?) => { ... };
}
Expand description

Runs several fallible futures at once and gives their values together, or the first error: parallel(Catalogue.prices(s), Rates.latest())! in .glacier, glacier::parallel!(a, b).await? in Rust. They run in this task, side by side, so the request’s database connection and access come along.