(
&mut self,
key: u64,
resource: ResourceCollection,
args: Table,
)
| 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, |
no test coverage detected