Wait for plugin shutdown
(&self)
| 1217 | |
| 1218 | /// Wait for plugin shutdown |
| 1219 | pub async fn join(&self) -> Result<(), Error> { |
| 1220 | self.wait_handle |
| 1221 | .subscribe() |
| 1222 | .recv() |
| 1223 | .await |
| 1224 | .context("error waiting for shutdown") |
| 1225 | } |
| 1226 | |
| 1227 | /// Request plugin shutdown |
| 1228 | pub fn shutdown(&self) -> Result<(), Error> { |