MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / create

Method create

flow-rs/src/node/port.rs:70–88  ·  view source on GitHub ↗
(
        &mut self,
        key: u64,
        resource: ResourceCollection,
        args: Table,
    )

Source from the content-addressed store, hash-verified

68 }
69
70 pub async fn create(
71 &mut self,
72 key: u64,
73 resource: ResourceCollection,
74 args: Table,
75 ) -> Result<JoinHandle<Result<()>>> {
76 self.create_spec(
77 key,
78 self.brokers
79 .keys()
80 .next()
81 .expect("not init")
82 .clone()
83 .as_str(),
84 resource,
85 args,
86 )
87 .await
88 }
89
90 pub async fn create_spec(
91 &mut self,

Callers 2

startMethod · 0.80
execMethod · 0.80

Calls 3

create_specMethod · 0.80
cloneMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected