MCPcopy Index your code
hub / github.com/RustPython/RustPython / send

Method send

crates/vm/src/signal.rs:150–156  ·  view source on GitHub ↗
(&self, sig: UserSignal)

Source from the content-addressed store, hash-verified

148
149impl UserSignalSender {
150 pub fn send(&self, sig: UserSignal) -> Result<(), UserSignalSendError> {
151 self.tx
152 .send(sig)
153 .map_err(|mpsc::SendError(sig)| UserSignalSendError(sig))?;
154 set_triggered();
155 Ok(())
156 }
157}
158
159pub struct UserSignalSendError(pub UserSignal);

Callers 2

execute_instructionMethod · 0.45
_sendMethod · 0.45

Calls 2

UserSignalSendErrorClass · 0.85
set_triggeredFunction · 0.85

Tested by

no test coverage detected