(&mut self)
| 99 | } |
| 100 | |
| 101 | async fn exec(&mut self) { |
| 102 | stackful(|| { |
| 103 | Python::with_gil(|py| { |
| 104 | if let Err(err) = self.imp.call_method0(py, "exec") { |
| 105 | err.print(py); |
| 106 | panic!("python node {} exec fault!", self.name); |
| 107 | } |
| 108 | }) |
| 109 | }) |
| 110 | .await; |
| 111 | } |
| 112 | |
| 113 | async fn start_loop(&mut self, res: ResourceCollection) { |
| 114 | self.initialize(res).await; |