()
| 19 | |
| 20 | #[uniffi::export] |
| 21 | pub fn stop_worker() { |
| 22 | log_mobile("[cake-mobile] stop_worker called"); |
| 23 | update_status("stopping", "Stopping...", 0.0); |
| 24 | if let Ok(mut guard) = STOP_TX.lock() { |
| 25 | if let Some(tx) = guard.take() { |
| 26 | let _ = tx.send(true); |
| 27 | } |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | // --------------------------------------------------------------------------- |
| 32 | // Status |
no test coverage detected