/// Binds to a list of instances, and any eager children they may return.
Binds to a list of instances, and any eager children they may return.
Binds to a list of instances and any eager children they may return .
async fn bind_eager_children_recursive<'a>(
        &'a self,
        mut instances_to_bind: Vec<Arc<Realm>>,
    ) -> Result<(), ModelError> {
        loop {
            if instances_to_bind.is_empty() {
                break;
            }
            let futures: Vec<_> = instances_to_bind
                .iter()
                .map(|realm| {
                    FutureObj::new(Box::new(
                        async move { await!(self.bind_instance(realm.clone())) },
                    ))
                })
                .collect();
            let res = await!(join_all(futures));
            instances_to_bind.clear();
            for e in res {
                instances_to_bind.append(&mut e?);
            }
        }
        Ok(())
    }
async fn bind_eager_children_recursive < ' a > ( & ' a self , mut instances_to_bind : Vec < Arc < Realm > > , ) -> Result < ( ) , ModelError > { loop { if instances_to_bind . is_empty ( ) { break ; } let futures : Vec < _ > = instances_to_bind . iter ( ) . map ( | realm | { FutureObj :: new ( Box :: new ( async move { await ! ( self bind_instance ( realm clone ( ) ) ) } , ) ) } ) . collect ( ) ; let res = await ! ( join_all ( futures ) ) ; instances_to_bind . clear ( ) ; for e in res { instances_to_bind . append ( & mut e ? ) ; } } Ok ( ( ) ) }
Binds to a list of instances, and any eager children they may return.
Binds to a list of instances and any eager children they may return .
&'a self
instances_to_bind
Vec<Arc<Realm>>