NLinker icon

async try_join_all example

NLinker | PRO | 12/23/19 10:11:32 AM UTC | 0 ⭐ | 7896 👁️ | Never ⏰ | []
Rust |

930 B

|

None

|

0 👍

/

0 👎

    let stmts = future::try_join_all(vec![
        client.prepare(&format!(
            "select * from {} where not_deleted = 't'",
            ManagedTargetMountRecord::table_name()
        )),
        client.prepare(&format!(
            "select * from {} where not_deleted = 't'",
            StratagemConfiguration::table_name()
        )),
        client.prepare(&format!(
            "select * from {} where not_deleted = 't'",
            LnetConfigurationRecord::table_name()
        )),
        client.prepare(&format!(
            "select * from {} where not_deleted = 't'",
            VolumeNodeRecord::table_name()
        )),
        client.prepare(&format!(
            "select * from {} where not_deleted = 't'",
            OstPoolRecord::table_name()
        )),
        client.prepare(&format!(
            "select * from {}",
            OstPoolOstsRecord::table_name()
        )),
    ])
    .await?;

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎