MCPcopy Create free account
hub / github.com/YuminosukeSato/ironkernel / fail

Method fail

src/python/py_callable.rs:55–63  ·  view source on GitHub ↗
(&self, message: String)

Source from the content-addressed store, hash-verified

53 }
54
55 pub(crate) fn fail(&self, message: String) {
56 let (mutex, condvar) = &*self.inner;
57 let mut state = mutex.lock().unwrap();
58 if state.is_terminal() {
59 return;
60 }
61 *state = CallableState::Failed(message);
62 condvar.notify_all();
63 }
64
65 pub(crate) fn cancel(&self) -> bool {
66 let (mutex, condvar) = &*self.inner;

Calls 1

is_terminalMethod · 0.45