async fn room_member_payload_batch(&self, room_id: String, member_id_list: Vec<String>) -> Vec<RoomMemberPayload> {
        debug!(
            "room_member_payload_batch(room_id = {}, member_id_list = {:?})",
            room_id, member_id_list
        );
        let mut member_list = vec![];
        let mut stream = tokio_stream::iter(member_id_list)
            .map(|member_id| self.room_member_payload(room_id.clone(), member_id))
            .buffer_unordered(16);
        while let Some(result) = stream.next().await {
            if let Ok(member) = result {
                member_list.push(member);
            }
        }
        member_list
    }
/// Batch load room members with a default batch size of 16.
Batch load room members with a default batch size of 16.
Batch load room members with a default batch size of 16 .
async fn room_member_payload_batch(&self, room_id: String, member_id_list: Vec<String>) -> Vec<RoomMemberPayload> {
        debug!(
            "room_member_payload_batch(room_id = {}, member_id_list = {:?})",
            room_id, member_id_list
        );
        let mut member_list = vec![];
        let mut stream = tokio_stream::iter(member_id_list)
            .map(|member_id| self.room_member_payload(room_id.clone(), member_id))
            .buffer_unordered(16);
        while let Some(result) = stream.next().await {
            if let Ok(member) = result {
                member_list.push(member);
            }
        }
        member_list
    }
async fn room_member_payload_batch ( & self , room_id : String , member_id_list : Vec < String > ) -> Vec < RoomMemberPayload > { debug ! ( " " room_id member_id_list ) ; let mut member_list = vec ! [ ] ; let mut stream = tokio_stream :: iter ( member_id_list ) . map ( | member_id | self . room_member_payload ( room_id . clone ( ) , member_id ) ) . buffer_unordered ( 16 ) ; while let Some ( result ) = stream . next ( ) . await { if let Ok ( member ) = result { member_list . push ( member ) ; } } member_list }
Batch load room members with a default batch size of 16.
Batch load room members with a default batch size of 16 .
&self
room_id
String
member_id_list
Vec<String>
&self
room_id
String
member_id_list
Vec<String>