MCPcopy Create free account
hub / github.com/Botloader/botloader / send_complete

Method send_complete

components/scheduler/src/vm_session.rs:200–202  ·  view source on GitHub ↗

Asks the vm to finish its pending work and shut down gracefully, the worker will send a [WorkerMessage::Shutdown] for the current session when done.

(&mut self)

Source from the content-addressed store, hash-verified

198 /// worker will send a [WorkerMessage::Shutdown] for the current session
199 /// when done.
200 pub fn send_complete(&mut self) -> Result<(), ()> {
201 self.worker.tx.send(SchedulerMessage::Complete).map_err(|_| ())
202 }
203
204 pub async fn recv(&mut self) -> Option<WorkerMessage> {
205 self.worker.rx.recv().await

Callers 1

shutdownMethod · 0.80

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected