MCPcopy Create free account
hub / github.com/evilsocket/cake / stop_worker

Function stop_worker

cake-mobile/src/lib.rs:21–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20#[uniffi::export]
21pub 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

Callers 1

cake_stop_workerFunction · 0.85

Calls 2

log_mobileFunction · 0.85
update_statusFunction · 0.85

Tested by

no test coverage detected