///
/// Return the value of the given Node. This is a synonym for `self.get(context, node)`, but it
/// is expected to be used by callers requesting node values from the graph, while `self.get` is
/// also used by Nodes to request dependencies..
///
Return the value of the given Node. This is a synonym for `self.get(context, node)`, but it
is expected to be used by callers requesting node values from the graph, while `self.get` is
also used by Nodes to request dependencies
Return the value of the given Node . This is a synonym for ` self . get ( context node ) ` but it is expected to be used by callers requesting node values from the graph while ` self . get ` is also used by Nodes to request dependencies
pub async fn create(&self, node: N, context: &N::Context) -> Result<N::Item, N::Error> {
    let result = self.get(context, node).await;
    // In the background, garbage collect edges.
    // NB: This could safely occur at any frequency: if it ever shows up in profiles, we could make
    // it optional based on how many edges are garbage.
    context.spawn({
      let context = context.clone();
      async move {
        context.graph().garbage_collect_edges();
      }
    });
    result
  }
pub async fn create ( & self , node : N , context : & N :: Context ) -> Result < N :: Item , N :: Error > { let result = self . get ( context , node ) . await ; // In the background, garbage collect edges. // NB: This could safely occur at any frequency: if it ever shows up in profiles, we could make // it optional based on how many edges are garbage. context . spawn ( { let context = context . clone ( ) ; async move { context . graph ( ) . garbage_collect_edges ( ) ; } } ) ; result }
Return the value of the given Node.
Return the value of the given Node .
&self
node
N
context
&N::Context